|
IAIK PKCS#11 Wrapper Demo version 1.2.17 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdemo.pkcs.pkcs11.TokenPrivateKey
This is an adapter class that allows to use token keys as JCA private keys. An application can use this class whereever an interface requires the application to pass an JCA private key; e.g. for signing.
Field Summary | |
protected PrivateKey |
tokenPrivateKey_
The PKCS#11 private key of this object. |
Fields inherited from interface java.security.PrivateKey |
serialVersionUID |
Constructor Summary | |
TokenPrivateKey(PrivateKey tokenPrivateKey)
Create a new JCA private key that uses the given PKCS#11 private key internally. |
Method Summary | |
String |
getAlgorithm()
Just returns null. |
byte[] |
getEncoded()
Just returns null. |
String |
getFormat()
Just returns null. |
PrivateKey |
getTokenPrivateKey()
Returns the PKCS#11 private key object that this object refers to. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected PrivateKey tokenPrivateKey_
Constructor Detail |
public TokenPrivateKey(PrivateKey tokenPrivateKey)
tokenPrivateKey
- The PKCS#11 private key that this object refers to.Method Detail |
public String getAlgorithm()
getAlgorithm
in interface Key
public String getFormat()
getFormat
in interface Key
public byte[] getEncoded()
getEncoded
in interface Key
public PrivateKey getTokenPrivateKey()
|
IAIK PKCS#11 Wrapper Demo version 1.2.17 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |