PHP Class Jose\KeyConverter\RSAKey

Inheritance: extends FG\ASN1\Universal\Sequence
Afficher le fichier Open project: spomky-labs/jose Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( Jose\Object\JWKInterface | string | array $data )
__toString ( )
getCoefficient ( ) : BigInteger | null
getExponent ( ) : BigInteger
getExponents ( ) : BigInteger[]
getModulus ( ) : BigInteger
getModulusLength ( ) : integer
getPrimes ( ) : BigInteger[]
getPrivateExponent ( ) : BigInteger
getPublicExponent ( ) : BigInteger
isPrivate ( ) : boolean
isPublic ( ) : boolean
toArray ( ) : array
toDER ( ) : string
toPEM ( ) : string
toPublic ( RSAKey $private ) : RSAKey

Private Methods

Méthode Description
convertBase64StringToBigInteger ( string $value ) : BigInteger
fromBase64ToInteger ( string $value ) : string
initPrivateKey ( )
initPublicKey ( )
loadJWK ( array $jwk )
loadPEM ( string $data ) : array
populateBigIntegers ( )
populateCRT ( ) This method adds Chinese Remainder Theorem (CRT) parameters if primes 'p' and 'q' are available.

Method Details

__construct() public méthode

public __construct ( Jose\Object\JWKInterface | string | array $data )
$data Jose\Object\JWKInterface | string | array

__toString() public méthode

public __toString ( )

getCoefficient() public méthode

public getCoefficient ( ) : BigInteger | null
Résultat Jose\Util\BigInteger | null

getExponent() public méthode

public getExponent ( ) : BigInteger
Résultat Jose\Util\BigInteger

getExponents() public méthode

public getExponents ( ) : BigInteger[]
Résultat Jose\Util\BigInteger[]

getModulus() public méthode

public getModulus ( ) : BigInteger
Résultat Jose\Util\BigInteger

getModulusLength() public méthode

public getModulusLength ( ) : integer
Résultat integer

getPrimes() public méthode

public getPrimes ( ) : BigInteger[]
Résultat Jose\Util\BigInteger[]

getPrivateExponent() public méthode

public getPrivateExponent ( ) : BigInteger
Résultat Jose\Util\BigInteger

getPublicExponent() public méthode

public getPublicExponent ( ) : BigInteger
Résultat Jose\Util\BigInteger

isPrivate() public méthode

public isPrivate ( ) : boolean
Résultat boolean

isPublic() public méthode

public isPublic ( ) : boolean
Résultat boolean

toArray() public méthode

public toArray ( ) : array
Résultat array

toDER() public méthode

public toDER ( ) : string
Résultat string

toPEM() public méthode

public toPEM ( ) : string
Résultat string

toPublic() public static méthode

public static toPublic ( RSAKey $private ) : RSAKey
$private RSAKey
Résultat RSAKey