public interface IMyPrivateKey extends java.security.PrivateKey, IXMLEncodable
public IMyPublicKey(PrivateKeyInfo a_keyInfo) throws java.security.InvalidKeyException;
It is the only possibility to create them automatically at run time. The big advantage for the
code is that it does not need to "know" that a private key class exists. It can be instantiated
nevertheless! If you implement your own private key outside the AN.ON library, you must call
anon.util.ClassUtil.loadClasses()
to read your classes into the class cache. Otherwise,
the private key may not be found.anon.crypto.AsymmetricKeyPair
,
ClassUtil.loadClasses()
FIELD_XML_ELEMENT_CONTAINER_NAME, FIELD_XML_ELEMENT_NAME, XML_ATTR_ID, XML_ATTR_LANGUAGE, XML_ATTR_VERSION
Modifier and Type | Method and Description |
---|---|
IMyPublicKey |
createPublicKey()
Creates the corresponding public key to this private key.
|
mybouncycastle.org.bouncycastle.asn1.pkcs.PrivateKeyInfo |
getAsPrivateKeyInfo()
Gets the private key as a PrivateKeyInfo object.
|
ISignatureCreationAlgorithm |
getSignatureAlgorithm()
Gets the signature algorithm object that is held and initialised with this key.
|
toXmlElement
IMyPublicKey createPublicKey()
ISignatureCreationAlgorithm getSignatureAlgorithm()
mybouncycastle.org.bouncycastle.asn1.pkcs.PrivateKeyInfo getAsPrivateKeyInfo()
Copyright © 2023. All rights reserved.