Class BCSphincs256PrivateKey
- java.lang.Object
-
- org.bouncycastle.pqc.jcajce.provider.sphincs.BCSphincs256PrivateKey
-
- All Implemented Interfaces:
Serializable
,Key
,PrivateKey
,Destroyable
,SPHINCSKey
public class BCSphincs256PrivateKey extends Object implements PrivateKey, SPHINCSKey
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BCSphincs256PrivateKey(ASN1ObjectIdentifier treeDigest, SPHINCSPrivateKeyParameters params)
BCSphincs256PrivateKey(PrivateKeyInfo keyInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Compare this SPHINCS-256 private key with another object.String
getAlgorithm()
byte[]
getEncoded()
String
getFormat()
byte[]
getKeyData()
int
hashCode()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.security.auth.Destroyable
destroy, isDestroyed
-
-
-
-
Constructor Detail
-
BCSphincs256PrivateKey
public BCSphincs256PrivateKey(ASN1ObjectIdentifier treeDigest, SPHINCSPrivateKeyParameters params)
-
BCSphincs256PrivateKey
public BCSphincs256PrivateKey(PrivateKeyInfo keyInfo) throws IOException
- Throws:
IOException
-
-
Method Detail
-
equals
public boolean equals(Object o)
Compare this SPHINCS-256 private key with another object.
-
getAlgorithm
public final String getAlgorithm()
- Specified by:
getAlgorithm
in interfaceKey
- Returns:
- name of the algorithm - "SPHINCS-256"
-
getEncoded
public byte[] getEncoded()
- Specified by:
getEncoded
in interfaceKey
-
getKeyData
public byte[] getKeyData()
- Specified by:
getKeyData
in interfaceSPHINCSKey
-
-