|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hardtokenmgmt.core.token.TokenPrivateKey
public class 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 iaik.pkcs.pkcs11.objects.PrivateKey |
tokenPrivateKey_
The PKCS#11 private key of this object. |
| Constructor Summary | |
|---|---|
TokenPrivateKey(iaik.pkcs.pkcs11.objects.PrivateKey tokenPrivateKey)
Create a new JCA private key that uses the given PKCS#11 private key internally. |
|
| Method Summary | |
|---|---|
java.lang.String |
getAlgorithm()
Just returns null. |
byte[] |
getEncoded()
Just returns null. |
java.lang.String |
getFormat()
Just returns null. |
java.math.BigInteger |
getModulus()
|
java.math.BigInteger |
getPrivateExponent()
|
iaik.pkcs.pkcs11.objects.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 iaik.pkcs.pkcs11.objects.PrivateKey tokenPrivateKey_
| Constructor Detail |
|---|
public TokenPrivateKey(iaik.pkcs.pkcs11.objects.PrivateKey tokenPrivateKey)
tokenPrivateKey - The PKCS#11 private key that this object refers to.| Method Detail |
|---|
public java.lang.String getAlgorithm()
getAlgorithm in interface java.security.Keypublic java.lang.String getFormat()
getFormat in interface java.security.Keypublic byte[] getEncoded()
getEncoded in interface java.security.Keypublic iaik.pkcs.pkcs11.objects.PrivateKey getTokenPrivateKey()
public java.math.BigInteger getPrivateExponent()
getPrivateExponent in interface java.security.interfaces.RSAPrivateKeypublic java.math.BigInteger getModulus()
getModulus in interface java.security.interfaces.RSAKey
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||