public class IAIKPKCS11PublicKey extends IAIKPKCS11Key implements java.security.PublicKey
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
ENCODING_FORMAT
The default encoding format for public keys.
|
protected java.security.KeyFactory |
keyFactory_
The key factory that is used to encode the key.
|
AES, alias_, autoDestroy_, BATON, BLOWFISH, CAST, CAST128, CAST3, CAST5, CDMF, DES, DES2, DESede, destroyed_, DH, DSA, ECDSA, GENERIC_SECRET, IDEA, JUNIPER, KEA, KEY_TYPE_NAME_PROPERTIES, keyObject_, keyTypeCodes_, keyTypeNames_, RC2, RC4, RC5, RSA, session_, SKIPJACK, tokenManager_, TWOFISH, VENDOR_DEFINED
Modifier | Constructor and Description |
---|---|
protected |
IAIKPKCS11PublicKey(TokenManager tokenManager,
iaik.pkcs.pkcs11.objects.PublicKey publicKeyObject)
Construct a public key object that is associated with the given publickeyObjecton the given
token.
|
Modifier and Type | Method and Description |
---|---|
static IAIKPKCS11PublicKey |
create(TokenManager tokenManager,
iaik.pkcs.pkcs11.objects.PublicKey publicKeyObject)
Create a new instance of a IAIKPKCS11PublicKey which's token managed by the given token manager
and is based on the given PKCS#11 key object.
|
byte[] |
getEncoded()
Get the X.509 encoded key.
|
java.lang.String |
getFormat()
Get the encoding name.
|
protected java.security.KeyFactory |
getKeyFactory()
Get a key factory that can encode this key according to X.509.
|
create, destroy, finalize, getAlgorithm, getAlgorithmCode, getAlgorithmName, getAlias, getKeyID, getKeyObject, getSession, getTokenManager, isAutoDestroy, isDestroyed, jdk16AndEccelerate, setAutoDestroy, setSession, toString
protected static final java.lang.String ENCODING_FORMAT
protected java.security.KeyFactory keyFactory_
protected IAIKPKCS11PublicKey(TokenManager tokenManager, iaik.pkcs.pkcs11.objects.PublicKey publicKeyObject)
tokenManager
- The token manager of the token where this key resides.publicKeyObject
- The PKCS#11 key object.public static IAIKPKCS11PublicKey create(TokenManager tokenManager, iaik.pkcs.pkcs11.objects.PublicKey publicKeyObject)
tokenManager
- The token manager of the token where the key is.publicKeyObject
- The PKCS#11 key object.public byte[] getEncoded()
getEncoded
in interface java.security.Key
getEncoded
in class IAIKPKCS11Key
public java.lang.String getFormat()
getFormat
in interface java.security.Key
getFormat
in class IAIKPKCS11Key
protected java.security.KeyFactory getKeyFactory()
IAIK JavaSecurity Website https://jce.iaik.tugraz.at/
IAIK at Graz University of Technology, Austria, Europe
Copyright 2001-2023 IAIK, Graz University of Technology, Inffeldgasse 16a, 8010 Graz, Austria. All Rights Reserved. Version 1.9.4