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

Class: RSAPublicKey

Source Location: /lib/crypto/RSAPublicKey.php

Class Overview


Class to manage public keys.


Variables

Methods



Class Details

[line 38]
Class to manage public keys.



[ Top ]


Class Variables

$bits =

[line 44]



Tags:

access:  protected

Type:   mixed


[ Top ]

$der =

[line 41]



Tags:

access:  protected

Type:   mixed


[ Top ]

$exponent =

[line 43]



Tags:

access:  protected

Type:   mixed


[ Top ]

$modulus =

[line 42]



Tags:

access:  protected

Type:   mixed


[ Top ]

$pem =

[line 40]



Tags:

access:  protected

Type:   mixed


[ Top ]



Class Methods


constructor __construct [line 49]

RSAPublicKey __construct( [ $pem = ''])

Build a new public key from its PEM representation.



Tags:

access:  public


Parameters:

   $pem  

[ Top ]

method decode [line 91]

void decode( )

Extract public key details from its DER representation.



Tags:

access:  protected


[ Top ]

method encode [line 121]

void encode( )

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



Tags:

access:  public


[ Top ]

method fromDER [line 58]

void fromDER( $der)

Build the public key from its DER representation.



Tags:

access:  public


Parameters:

   $der  

[ Top ]

method fromPEM [line 73]

void fromPEM( $pem)

Build the public key from its PEM representation.



Tags:

access:  protected


Parameters:

   $pem  

[ Top ]

method getBits [line 156]

void getBits( )

Get the length of the key in bits.



Tags:

access:  public


[ Top ]

method getDER [line 135]

void getDER( )

Get the DER representation of the key.



Tags:

access:  public


[ Top ]

method getExponent [line 149]

void getExponent( )

Get the exponent of the key.



Tags:

access:  public


[ Top ]

method getModulus [line 142]

void getModulus( )

Get the modulus of the key.



Tags:

access:  public


[ Top ]

method getPEM [line 128]

void getPEM( )

Get the PEM representation of the key.



Tags:

access:  public


[ Top ]

method setModulus [line 163]

void setModulus( $modulus)

Set the modulus of the key.



Tags:

access:  public


Parameters:

   $modulus  

[ Top ]

method setPublicExponent [line 170]

void setPublicExponent( $exponent)

Set the public exponent of the key.



Tags:

access:  public


Parameters:

   $exponent  

[ Top ]


Documentation generated on Mon, 20 Feb 2012 12:07:18 +0100 by phpDocumentor 1.4.3