Class BCGOST3410PrivateKey
java.lang.Object
org.bouncycastle.jcajce.provider.asymmetric.gost.BCGOST3410PrivateKey
- All Implemented Interfaces:
Serializable
,Key
,PrivateKey
,Destroyable
,GOST3410Key
,GOST3410PrivateKey
,PKCS12BagAttributeCarrier
public class BCGOST3410PrivateKey
extends Object
implements GOST3410PrivateKey, PKCS12BagAttributeCarrier
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
byte[]
Return a PKCS8 representation of the key.return the encoding format we produce in getEncoded().getX()
int
hashCode()
void
setBagAttribute
(ASN1ObjectIdentifier oid, ASN1Encodable attribute) toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface javax.security.auth.Destroyable
destroy, isDestroyed
-
Constructor Details
-
BCGOST3410PrivateKey
protected BCGOST3410PrivateKey()
-
-
Method Details
-
getAlgorithm
- Specified by:
getAlgorithm
in interfaceKey
-
getFormat
return the encoding format we produce in getEncoded(). -
getEncoded
public byte[] getEncoded()Return a PKCS8 representation of the key. The sequence returned represents a full PrivateKeyInfo object.- Specified by:
getEncoded
in interfaceKey
- Returns:
- a PKCS8 representation of the key.
-
getParameters
- Specified by:
getParameters
in interfaceGOST3410Key
-
getX
- Specified by:
getX
in interfaceGOST3410PrivateKey
-
equals
-
hashCode
public int hashCode() -
toString
-
setBagAttribute
- Specified by:
setBagAttribute
in interfacePKCS12BagAttributeCarrier
-
getBagAttribute
- Specified by:
getBagAttribute
in interfacePKCS12BagAttributeCarrier
-
getBagAttributeKeys
- Specified by:
getBagAttributeKeys
in interfacePKCS12BagAttributeCarrier
-