Class BCSPHINCSPlusPrivateKey
- java.lang.Object
-
- org.bouncycastle.pqc.jcajce.provider.sphincsplus.BCSPHINCSPlusPrivateKey
-
- All Implemented Interfaces:
java.io.Serializable,java.security.Key,java.security.PrivateKey,javax.security.auth.Destroyable,SPHINCSPlusKey,SPHINCSPlusPrivateKey
public class BCSPHINCSPlusPrivateKey extends java.lang.Object implements java.security.PrivateKey, SPHINCSPlusPrivateKey
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BCSPHINCSPlusPrivateKey(PrivateKeyInfo keyInfo)BCSPHINCSPlusPrivateKey(SPHINCSPlusPrivateKeyParameters params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Compare this SPHINCS-256 private key with another object.java.lang.StringgetAlgorithm()byte[]getEncoded()java.lang.StringgetFormat()SPHINCSPlusParameterSpecgetParameterSpec()Return the parameters for this key.SPHINCSPlusPublicKeygetPublicKey()Return the public key corresponding to this private key.inthashCode()
-
-
-
Constructor Detail
-
BCSPHINCSPlusPrivateKey
public BCSPHINCSPlusPrivateKey(SPHINCSPlusPrivateKeyParameters params)
-
BCSPHINCSPlusPrivateKey
public BCSPHINCSPlusPrivateKey(PrivateKeyInfo keyInfo) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
Compare this SPHINCS-256 private key with another object.- Overrides:
equalsin classjava.lang.Object- Parameters:
o- the other object- Returns:
- the result of the comparison
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getAlgorithm
public final java.lang.String getAlgorithm()
- Specified by:
getAlgorithmin interfacejava.security.Key- Returns:
- name of the algorithm - "SPHINCS+"
-
getEncoded
public byte[] getEncoded()
- Specified by:
getEncodedin interfacejava.security.Key
-
getPublicKey
public SPHINCSPlusPublicKey getPublicKey()
Description copied from interface:SPHINCSPlusPrivateKeyReturn the public key corresponding to this private key.- Specified by:
getPublicKeyin interfaceSPHINCSPlusPrivateKey- Returns:
- a SPHINCS+ Public Key
-
getParameterSpec
public SPHINCSPlusParameterSpec getParameterSpec()
Description copied from interface:SPHINCSPlusKeyReturn the parameters for this key.- Specified by:
getParameterSpecin interfaceSPHINCSPlusKey- Returns:
- a SPHINCSPlusParameterSpec
-
getFormat
public java.lang.String getFormat()
- Specified by:
getFormatin interfacejava.security.Key
-
-