Class BCDSAPrivateKey
java.lang.Object
org.bouncycastle.jcajce.provider.asymmetric.dsa.BCDSAPrivateKey
- All Implemented Interfaces:
Serializable,DSAKey,DSAPrivateKey,Key,PrivateKey,Destroyable,PKCS12BagAttributeCarrier
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]Return a PKCS8 representation of the key.return the encoding format we produce in getEncoded().getX()booleaninthashCode()voidsetBagAttribute(ASN1ObjectIdentifier oid, ASN1Encodable attribute) voidsetFriendlyName(String friendlyName) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface javax.security.auth.Destroyable
destroy, isDestroyed
-
Constructor Details
-
BCDSAPrivateKey
protected BCDSAPrivateKey() -
BCDSAPrivateKey
- Throws:
IOException
-
-
Method Details
-
getAlgorithm
- Specified by:
getAlgorithmin 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:
getEncodedin interfaceKey- Returns:
- a PKCS8 representation of the key.
-
getParams
-
getX
- Specified by:
getXin interfaceDSAPrivateKey
-
equals
-
hashCode
public int hashCode() -
setBagAttribute
- Specified by:
setBagAttributein interfacePKCS12BagAttributeCarrier
-
getBagAttribute
- Specified by:
getBagAttributein interfacePKCS12BagAttributeCarrier
-
getBagAttributeKeys
- Specified by:
getBagAttributeKeysin interfacePKCS12BagAttributeCarrier
-
hasFriendlyName
public boolean hasFriendlyName()- Specified by:
hasFriendlyNamein interfacePKCS12BagAttributeCarrier
-
setFriendlyName
- Specified by:
setFriendlyNamein interfacePKCS12BagAttributeCarrier
-
toString
-