PHP Class Jose\KeyConverter\ECKey

Inheritance: extends FG\ASN1\Universal\Sequence
ファイルを表示 Open project: spomky-labs/jose Class Usage Examples

Public Methods

Method Description
__construct ( Jose\Object\JWKInterface | string | array $data )
__toString ( ) : string
isPrivate ( ) : boolean
toArray ( ) : array
toDER ( ) : string
toPEM ( ) : string
toPublic ( ECKey $private ) : ECKey

Private Methods

Method Description
getCurve ( string $oid ) : string
getD ( FG\ASN1\Object $children ) : string
getOID ( $curve ) : string
getSupportedCurves ( ) : array
getXAndY ( FG\ASN1\Object $children, string | null &$x, string | null &$y )
initPrivateKey ( )
initPublicKey ( )
isPKCS8 ( array $children ) : boolean
loadJWK ( array $jwk )
loadPEM ( string $data ) : array
loadPKCS8 ( array $children ) : array
loadPrivatePEM ( array $children ) : array
loadPublicPEM ( array $children ) : array
verifyVersion ( FG\ASN1\Object $children )

Method Details

__construct() public method

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

__toString() public method

public __toString ( ) : string
return string

isPrivate() public method

public isPrivate ( ) : boolean
return boolean

toArray() public method

public toArray ( ) : array
return array

toDER() public method

public toDER ( ) : string
return string

toPEM() public method

public toPEM ( ) : string
return string

toPublic() public static method

public static toPublic ( ECKey $private ) : ECKey
$private ECKey
return ECKey