com.plumtree.openfoundation.security
Class XPRSAPrivateKey

java.lang.Object
  extended by com.plumtree.openfoundation.security.XPRSAPrivateKey
All Implemented Interfaces:
IXPPKIPrivateKey

public class XPRSAPrivateKey
extends java.lang.Object
implements IXPPKIPrivateKey

Holds the public key parameters needed for RSA encryption.


Constructor Summary
XPRSAPrivateKey(java.lang.String keyValues)
          An XPRSAPrivateKey constructor which takes Key Values as input.
XPRSAPrivateKey(XPBigInteger modulus, XPBigInteger exponent)
          An XPRSAPrivateKey constructor which takes modulus and exponent as input.
 
Method Summary
 XPBigInteger GetExponent()
          Returns the Exponent of this RSA Private Key.
 XPBigInteger GetModulus()
          Returns the Modulus of this RSA Private Key.
 java.lang.String toString()
          Returns the String value of this RSA Private Key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XPRSAPrivateKey

public XPRSAPrivateKey(XPBigInteger modulus,
                       XPBigInteger exponent)
An XPRSAPrivateKey constructor which takes modulus and exponent as input.

Parameters:
modulus - for the RSA Private key.
exponent - for the RSA Private key.

XPRSAPrivateKey

public XPRSAPrivateKey(java.lang.String keyValues)
An XPRSAPrivateKey constructor which takes Key Values as input.

Parameters:
keyValues - String of keyvalues.
Method Detail

GetModulus

public XPBigInteger GetModulus()
Returns the Modulus of this RSA Private Key.

Returns:
XPBigInteger Modulus value.

GetExponent

public XPBigInteger GetExponent()
Returns the Exponent of this RSA Private Key.

Returns:
XPBigInteger Exponent value.

toString

public java.lang.String toString()
Returns the String value of this RSA Private Key.

Overrides:
toString in class java.lang.Object
Returns:
String value of Private Key.


Copyright © 2002, 2003, 2004 Plumtree Software Inc. All Rights Reserved.