PUB - the type of public key.PRIV - the type of private key.public static final class InstanceIdentityProvider.KeyTypes<PUB extends PublicKey,PRIV extends PrivateKey> extends Object
| Modifier and Type | Method and Description |
|---|---|
X509Certificate |
getCertificate()
Gets the self-signed
X509Certificate that is associated with this identity. |
KeyPair |
getKeyPair()
Gets the
KeyPair that comprises the instance identity. |
PRIV |
getPrivateKey()
Shortcut to
KeyPair.getPrivate(). |
Class<PRIV> |
getPrivateKeyClass()
Gets the interface for the private key.
|
PUB |
getPublicKey()
Shortcut to
KeyPair.getPublic(). |
Class<PUB> |
getPublicKeyClass()
Gets the interface for the public key.
|
public Class<PUB> getPublicKeyClass()
public Class<PRIV> getPrivateKeyClass()
@CheckForNull public KeyPair getKeyPair()
KeyPair that comprises the instance identity.KeyPair that comprises the instance identity. null could technically be
returned in
the event that a keypair could not be generated, for example if the specific key type of this provider
is not permitted at the required length by the JCA policy.@CheckForNull public PUB getPublicKey()
KeyPair.getPublic().null if getKeyPair() is null.@CheckForNull public PRIV getPrivateKey()
KeyPair.getPrivate().null if getKeyPair() is null.@CheckForNull public X509Certificate getCertificate()
X509Certificate that is associated with this identity. The certificate
will must be currently valid. Repeated calls to this method may result in new certificates being generated.null if getKeyPair() is null.Copyright © 2016. All rights reserved.