T
- Asymmetric key parameters type wrapped by this class.public abstract class AbstractWrappedKey<T extends org.bouncycastle.crypto.params.AsymmetricKeyParameter> extends Object implements Key
Modifier and Type | Field and Description |
---|---|
protected T |
delegate
Wrapped key.
|
static String |
PKCS8_FORMAT
PKCS#8 format identifier used with private keys.
|
static String |
X509_FORMAT
X.509 format identifier used with private keys.
|
serialVersionUID
Constructor and Description |
---|
AbstractWrappedKey(T wrappedKey)
Creates a new instance that wraps the given BC key.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getEncoded() |
String |
getFormat() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAlgorithm
public static final String PKCS8_FORMAT
public static final String X509_FORMAT
protected final T extends org.bouncycastle.crypto.params.AsymmetricKeyParameter delegate
public AbstractWrappedKey(T wrappedKey)
wrappedKey
- BC key to wrap.public String getFormat()
getFormat
in interface Key
X509_FORMAT
.public byte[] getEncoded()
getEncoded
in interface Key
Copyright © 2003-2024 Virginia Tech. All Rights Reserved.