Class BCBIKEPrivateKey
- java.lang.Object
-
- org.bouncycastle.pqc.jcajce.provider.bike.BCBIKEPrivateKey
-
- All Implemented Interfaces:
java.io.Serializable,java.security.Key,java.security.PrivateKey,javax.security.auth.Destroyable,BIKEKey
public class BCBIKEPrivateKey extends java.lang.Object implements java.security.PrivateKey, BIKEKey
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BCBIKEPrivateKey(PrivateKeyInfo keyInfo)BCBIKEPrivateKey(BIKEPrivateKeyParameters params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Compare this private key with another object.java.lang.StringgetAlgorithm()byte[]getEncoded()java.lang.StringgetFormat()BIKEParameterSpecgetParameterSpec()Return the parameters for this key.inthashCode()
-
-
-
Constructor Detail
-
BCBIKEPrivateKey
public BCBIKEPrivateKey(BIKEPrivateKeyParameters params)
-
BCBIKEPrivateKey
public BCBIKEPrivateKey(PrivateKeyInfo keyInfo) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
Compare this 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 - "BIKE[128|192|256]"
-
getEncoded
public byte[] getEncoded()
- Specified by:
getEncodedin interfacejava.security.Key
-
getParameterSpec
public BIKEParameterSpec getParameterSpec()
Description copied from interface:BIKEKeyReturn the parameters for this key.- Specified by:
getParameterSpecin interfaceBIKEKey- Returns:
- a BIKEParameterSpec
-
getFormat
public java.lang.String getFormat()
- Specified by:
getFormatin interfacejava.security.Key
-
-