PHP 클래스 XMLSecurityKey

파일 보기 프로젝트 열기: onelogin/php-saml 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$encryptedCtx
$guid
$isEncrypted
$iv
$key
$keyChain
$name
$passphrase
$type

공개 메소드들

메소드 설명
__construct ( $type, $params = null )
convertRSA ( $modulus, $exponent ) * Modulus and Exponent must already be base64 decoded
decryptData ( $data )
encryptData ( $data )
fromEncryptedKeyElement ( DOMElement $element ) : XMLSecurityKey Create key from an EncryptedKey-element.
generateSessionKey ( )
getAlgorithm ( )
getRawThumbprint ( $cert )
getSymmetricKeySize ( ) : integer | null Retrieve the key size for the symmetric encryption algorithm.
getX509Certificate ( ) : The Retrieve the X509 certificate this key represents.
getX509Thumbprint ( ) * Get the thumbprint of this X509 certificate.
loadKey ( $key, $isFile = false, $isCert = false )
makeAsnSegment ( $type, $string )
serializeKey ( $parent )
signData ( $data )
verifySignature ( $data, $signature )

비공개 메소드들

메소드 설명
decryptMcrypt ( $data )
decryptOpenSSL ( $data )
encryptMcrypt ( $data )
encryptOpenSSL ( $data )
signOpenSSL ( $data )
verifyOpenSSL ( $data, $signature )

메소드 상세

__construct() 공개 메소드

public __construct ( $type, $params = null )

convertRSA() 정적인 공개 메소드

* Modulus and Exponent must already be base64 decoded
static public convertRSA ( $modulus, $exponent )

decryptData() 공개 메소드

public decryptData ( $data )

encryptData() 공개 메소드

public encryptData ( $data )

fromEncryptedKeyElement() 공개 정적인 메소드

Create key from an EncryptedKey-element.
public static fromEncryptedKeyElement ( DOMElement $element ) : XMLSecurityKey
$element DOMElement The EncryptedKey-element.
리턴 XMLSecurityKey The new key.

generateSessionKey() 공개 메소드

public generateSessionKey ( )

getAlgorithm() 공개 메소드

public getAlgorithm ( )

getRawThumbprint() 공개 정적인 메소드

public static getRawThumbprint ( $cert )

getSymmetricKeySize() 공개 메소드

. If the key size is unknown, or this isn't a symmetric encryption algorithm, null is returned.
public getSymmetricKeySize ( ) : integer | null
리턴 integer | null The number of bytes in the key.

getX509Certificate() 공개 메소드

Will return the X509 certificate in PEM-format if this key represents an X509 certificate.
public getX509Certificate ( ) : The
리턴 The X509 certificate or null if this key doesn't represent an X509-certificate.

getX509Thumbprint() 공개 메소드

Returns: The thumbprint as a lowercase 40-character hexadecimal number, or null if this isn't a X509 certificate.
public getX509Thumbprint ( )

loadKey() 공개 메소드

public loadKey ( $key, $isFile = false, $isCert = false )

makeAsnSegment() 정적인 공개 메소드

static public makeAsnSegment ( $type, $string )

serializeKey() 공개 메소드

public serializeKey ( $parent )

signData() 공개 메소드

public signData ( $data )

verifySignature() 공개 메소드

public verifySignature ( $data, $signature )

프로퍼티 상세

$encryptedCtx 공개적으로 프로퍼티

public $encryptedCtx

$guid 공개적으로 프로퍼티

public $guid

$isEncrypted 공개적으로 프로퍼티

public $isEncrypted

$iv 공개적으로 프로퍼티

public $iv

$key 공개적으로 프로퍼티

public $key

$keyChain 공개적으로 프로퍼티

public $keyChain

$name 공개적으로 프로퍼티

public $name

$passphrase 공개적으로 프로퍼티

public $passphrase

$type 공개적으로 프로퍼티

public $type