phpPoA2
[ class tree: phpPoA2 ] [ index: phpPoA2 ] [ all elements ]

Class: RSAPrivateKey

Source Location: /lib/crypto/RSAPrivateKey.php

Class Overview


Class to manage private keys.


Variables

Methods



Class Details

[line 33]
Class to manage private keys.



[ Top ]


Class Variables

$bits =

[line 38]



Tags:

access:  protected

Type:   mixed


[ Top ]

$coefficient =

[line 45]



Tags:

access:  protected

Type:   mixed


[ Top ]

$der =

[line 36]



Tags:

access:  protected

Type:   mixed


[ Top ]

$exponent1 =

[line 43]



Tags:

access:  protected

Type:   mixed


[ Top ]

$exponent2 =

[line 44]



Tags:

access:  protected

Type:   mixed


[ Top ]

$modulus =

[line 37]



Tags:

access:  protected

Type:   mixed


[ Top ]

$pem =

[line 35]



Tags:

access:  protected

Type:   mixed


[ Top ]

$prime1 =

[line 41]



Tags:

access:  protected

Type:   mixed


[ Top ]

$prime2 =

[line 42]



Tags:

access:  protected

Type:   mixed


[ Top ]

$private_exponent =

[line 40]



Tags:

access:  protected

Type:   mixed


[ Top ]

$public_exponent =

[line 39]



Tags:

access:  protected

Type:   mixed


[ Top ]



Class Methods


constructor __construct [line 50]

RSAPrivateKey __construct( [ $pem = ''])

Build a new private key from its PEM representation.



Tags:

access:  public


Parameters:

   $pem  

[ Top ]

method decode [line 92]

void decode( )

Extract private key details from its DER representation.



Tags:

access:  protected


[ Top ]

method encode [line 120]

void encode( )

Build a new private key represented by it DER and PEM formats from its modulus and public exponent.



Tags:

access:  public


[ Top ]

method fromDER [line 59]

void fromDER( $der)

Build the private key from its DER representation.



Tags:

access:  public


Parameters:

   $der  

[ Top ]

method fromPEM [line 74]

void fromPEM( $pem)

Build the private key from its PEM representation.



Tags:

access:  protected


Parameters:

   $pem  

[ Top ]

method getBits [line 162]

void getBits( )

Get the length of the key in bits.



Tags:

access:  public


[ Top ]

method getCoefficient [line 197]

void getCoefficient( )

Get the coefficient of the key.



Tags:

access:  public


[ Top ]

method getDER [line 134]

void getDER( )

Get the DER representation of the key.



Tags:

access:  public


[ Top ]

method getExponent1 [line 183]

void getExponent1( )

Get the exponent 1 of the key.



Tags:

access:  public


[ Top ]

method getExponent2 [line 190]

void getExponent2( )

Get the exponent 2 of the key.



Tags:

access:  public


[ Top ]

method getModulus [line 141]

void getModulus( )

Get the modulus of the key.



Tags:

access:  public


[ Top ]

method getPEM [line 127]

void getPEM( )

Get the PEM representation of the key.



Tags:

access:  public


[ Top ]

method getPrime1 [line 169]

void getPrime1( )

Get the prime 1 of the key.



Tags:

access:  public


[ Top ]

method getPrime2 [line 176]

void getPrime2( )

Get the prime 2 of the key.



Tags:

access:  public


[ Top ]

method getPrivateExponent [line 155]

void getPrivateExponent( )

Get the private exponent of the key.



Tags:

access:  public


[ Top ]

method getPublicExponent [line 148]

void getPublicExponent( )

Get the public exponent of the key.



Tags:

access:  public


[ Top ]

method setCoefficient [line 253]

void setCoefficient( $coefficient)

Set the coefficient of the key.



Tags:

access:  public


Parameters:

   $coefficient  

[ Top ]

method setExponent1 [line 239]

void setExponent1( $exponent)

Set the exponent 1 of the key.



Tags:

access:  public


Parameters:

   $exponent  

[ Top ]

method setExponent2 [line 246]

void setExponent2( $exponent)

Set the exponent 2 of the key.



Tags:

access:  public


Parameters:

   $exponent  

[ Top ]

method setModulus [line 204]

void setModulus( $modulus)

Set the modulus of the key.



Tags:

access:  public


Parameters:

   $modulus  

[ Top ]

method setPrime1 [line 225]

void setPrime1( $prime)

Set the prime 1 of the key.



Tags:

access:  public


Parameters:

   $prime  

[ Top ]

method setPrime2 [line 232]

void setPrime2( $prime)

Set the prime 2 of the key.



Tags:

access:  public


Parameters:

   $prime  

[ Top ]

method setPrivateExponent [line 218]

void setPrivateExponent( $exponent)

Set the private exponent of the key.



Tags:

access:  public


Parameters:

   $exponent  

[ Top ]

method setPublicExponent [line 211]

void setPublicExponent( $exponent)

Set the public exponent of the key.



Tags:

access:  public


Parameters:

   $exponent  

[ Top ]


Documentation generated on Tue, 14 Jun 2011 12:22:19 +0200 by phpDocumentor 1.4.3