org.apache.geronimo.util.jce.provider
Class JCERSAPrivateKey

java.lang.Object
  extended by org.apache.geronimo.util.jce.provider.JCERSAPrivateKey
All Implemented Interfaces:
Serializable, RSAKey, RSAPrivateKey, Key, PrivateKey, PKCS12BagAttributeCarrier
Direct Known Subclasses:
JCERSAPrivateCrtKey

public class JCERSAPrivateKey
extends Object
implements RSAPrivateKey, PKCS12BagAttributeCarrier

See Also:
Serialized Form

Field Summary
protected  BigInteger modulus
           
protected  BigInteger privateExponent
           
 
Fields inherited from interface java.security.interfaces.RSAPrivateKey
serialVersionUID
 
Constructor Summary
protected JCERSAPrivateKey()
           
 
Method Summary
 boolean equals(Object o)
           
 String getAlgorithm()
           
 DEREncodable getBagAttribute(DERObjectIdentifier oid)
           
 Enumeration getBagAttributeKeys()
           
 byte[] getEncoded()
           
 String getFormat()
           
 BigInteger getModulus()
           
 BigInteger getPrivateExponent()
           
 void setBagAttribute(DERObjectIdentifier oid, DEREncodable attribute)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

modulus

protected BigInteger modulus

privateExponent

protected BigInteger privateExponent
Constructor Detail

JCERSAPrivateKey

protected JCERSAPrivateKey()
Method Detail

getModulus

public BigInteger getModulus()
Specified by:
getModulus in interface RSAKey

getPrivateExponent

public BigInteger getPrivateExponent()
Specified by:
getPrivateExponent in interface RSAPrivateKey

getAlgorithm

public String getAlgorithm()
Specified by:
getAlgorithm in interface Key

getFormat

public String getFormat()
Specified by:
getFormat in interface Key

getEncoded

public byte[] getEncoded()
Specified by:
getEncoded in interface Key

equals

public boolean equals(Object o)
Overrides:
equals in class Object

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.