public abstract class AbstractPrivateKey extends java.lang.Object implements IMyPrivateKey
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
FIELD_XML_ELEMENT_CONTAINER_NAME, FIELD_XML_ELEMENT_NAME, XML_ATTR_ID, XML_ATTR_LANGUAGE, XML_ATTR_VERSION
Modifier | Constructor and Description |
---|---|
protected |
AbstractPrivateKey()
Creates a new (empty) private key;
|
|
AbstractPrivateKey(mybouncycastle.org.bouncycastle.asn1.pkcs.PrivateKeyInfo a_keyInfo)
Creates a private key from a PrivateKeyInfo.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getEncoded()
Returns the key in a byte encoded form that is defined be the result of the method
getAsPrivateKeyInfo() . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createPublicKey, getAsPrivateKeyInfo, getSignatureAlgorithm
toXmlElement
private static final long serialVersionUID
protected AbstractPrivateKey()
public AbstractPrivateKey(mybouncycastle.org.bouncycastle.asn1.pkcs.PrivateKeyInfo a_keyInfo)
a_keyInfo
- a PrivateKeyInfopublic final byte[] getEncoded()
getAsPrivateKeyInfo()
.getEncoded
in interface java.security.Key
IMyPrivateKey.getAsPrivateKeyInfo()
Copyright © 2023. All rights reserved.