T - Asymmetric key parameters type wrapped by this class.public abstract class AbstractWrappedKey<T extends org.bouncycastle.crypto.params.AsymmetricKeyParameter>
extends java.lang.Object
implements java.security.Key
| Modifier and Type | Field and Description |
|---|---|
protected T |
delegate
Wrapped key.
|
static java.lang.String |
PKCS8_FORMAT
PKCS#8 format identifier used with private keys.
|
static java.lang.String |
X509_FORMAT
X.509 format identifier used with private keys.
|
| Constructor and Description |
|---|
AbstractWrappedKey(T wrappedKey)
Creates a new instance that wraps the given BC key.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getEncoded() |
java.lang.String |
getFormat() |
public static final java.lang.String PKCS8_FORMAT
public static final java.lang.String X509_FORMAT
protected final T extends org.bouncycastle.crypto.params.AsymmetricKeyParameter delegate
public AbstractWrappedKey(T wrappedKey)
wrappedKey - BC key to wrap.public java.lang.String getFormat()
getFormat in interface java.security.KeyX509_FORMAT.public byte[] getEncoded()
getEncoded in interface java.security.Key