org.apache.geronimo.util.jce.provider
Class JDKDSAPrivateKey
java.lang.Object
org.apache.geronimo.util.jce.provider.JDKDSAPrivateKey
- All Implemented Interfaces:
- Serializable, DSAKey, DSAPrivateKey, Key, PrivateKey, PKCS12BagAttributeCarrier
public class JDKDSAPrivateKey
- extends Object
- implements DSAPrivateKey, PKCS12BagAttributeCarrier
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDKDSAPrivateKey
protected JDKDSAPrivateKey()
getAlgorithm
public String getAlgorithm()
- Specified by:
getAlgorithm
in interface Key
getFormat
public String getFormat()
- return the encoding format we produce in getEncoded().
- Specified by:
getFormat
in interface Key
- Returns:
- the string "PKCS#8"
getEncoded
public byte[] getEncoded()
- Return a PKCS8 representation of the key. The sequence returned
represents a full PrivateKeyInfo object.
- Specified by:
getEncoded
in interface Key
- Returns:
- a PKCS8 representation of the key.
getParams
public DSAParams getParams()
- Specified by:
getParams
in interface DSAKey
getX
public BigInteger getX()
- Specified by:
getX
in interface DSAPrivateKey
setBagAttribute
public void setBagAttribute(DERObjectIdentifier oid,
DEREncodable attribute)
- Specified by:
setBagAttribute
in interface PKCS12BagAttributeCarrier
getBagAttribute
public DEREncodable getBagAttribute(DERObjectIdentifier oid)
- Specified by:
getBagAttribute
in interface PKCS12BagAttributeCarrier
getBagAttributeKeys
public Enumeration getBagAttributeKeys()
- Specified by:
getBagAttributeKeys
in interface PKCS12BagAttributeCarrier
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.