PHP 클래스 XMLSecurityDSig

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

공개 프로퍼티들

프로퍼티 타입 설명
$idKeys
$idNS
$sigNode

공개 메소드들

메소드 설명
__construct ( )
add509Cert ( $cert, $isPEMFormat = true, $isURL = false, $options = null )
addObject ( $data, $mimetype = null, $encoding = null )
addReference ( $node, $algorithm, $arTransforms = null, $options = null )
addReferenceList ( $arNodes, $algorithm, $arTransforms = null, $options = null )
appendCert ( )
appendKey ( $objKey, $parent = null )
appendSignature ( $parentNode, $insertBefore = false )
appendToKeyInfo ( DOMNode $node ) : DOMNode This function appends a node to the KeyInfo.
auxKeyInfo ( $parentRef, $xpath = null )
calculateDigest ( $digestAlgorithm, $data, $encode = true )
canonicalizeSignedInfo ( )
createNewSignNode ( $name, $value = null )
generateGUID ( $prefix = 'pfx' )
get509XCert ( $cert, $isPEMFormat = true )
getRefIDs ( )
getRefNodeID ( $refNode )
getValidatedNodes ( ) * This function retrieves an associative array of the validated nodes.
insertSignature ( $node, $beforeNode = null ) : DOMNode This function inserts the signature element.
locateKey ( $node = null )
locateSignature ( $objDoc, $pos )
processRefNode ( $refNode )
processTransforms ( $refNode, $objData, $includeCommentNodes = true )
setCanonicalMethod ( $method )
sign ( $objKey, $appendToNode = null )
signData ( $objKey, $data )
staticAdd509Cert ( $parentRef, $cert, $isPEMFormat = true, $isURL = false, $xpath = null, $options = null )
staticGet509XCerts ( $certs, $isPEMFormat = true )
validateDigest ( $refNode, $data )
validateReference ( )
verify ( $objKey )

비공개 메소드들

메소드 설명
addRefInternal ( $sinfoNode, $node, $algorithm, $arTransforms = null, $options = null )
canonicalizeData ( $node, $canonicalmethod, $arXPath = null, $prefixList = null )
getXPathObj ( )
resetXPathObj ( )

메소드 상세

__construct() 공개 메소드

public __construct ( )

add509Cert() 공개 메소드

public add509Cert ( $cert, $isPEMFormat = true, $isURL = false, $options = null )

addObject() 공개 메소드

public addObject ( $data, $mimetype = null, $encoding = null )

addReference() 공개 메소드

public addReference ( $node, $algorithm, $arTransforms = null, $options = null )

addReferenceList() 공개 메소드

public addReferenceList ( $arNodes, $algorithm, $arTransforms = null, $options = null )

appendCert() 공개 메소드

public appendCert ( )

appendKey() 공개 메소드

public appendKey ( $objKey, $parent = null )

appendSignature() 공개 메소드

public appendSignature ( $parentNode, $insertBefore = false )

appendToKeyInfo() 공개 메소드

The KeyInfo element will be created if one does not exist in the document.
public appendToKeyInfo ( DOMNode $node ) : DOMNode
$node DOMNode The node to append to the KeyInfo.
리턴 DOMNode The KeyInfo element node

auxKeyInfo() 정적인 공개 메소드

static public auxKeyInfo ( $parentRef, $xpath = null )

calculateDigest() 공개 메소드

public calculateDigest ( $digestAlgorithm, $data, $encode = true )

canonicalizeSignedInfo() 공개 메소드

createNewSignNode() 공개 메소드

public createNewSignNode ( $name, $value = null )

generateGUID() 정적인 공개 메소드

static public generateGUID ( $prefix = 'pfx' )

get509XCert() 정적인 공개 메소드

static public get509XCert ( $cert, $isPEMFormat = true )

getRefIDs() 공개 메소드

public getRefIDs ( )

getRefNodeID() 공개 메소드

public getRefNodeID ( $refNode )

getValidatedNodes() 공개 메소드

The array will contain the id of the referenced node as the key and the node itself as the value. Returns: An associative array of validated nodes or null if no nodes have been validated.
public getValidatedNodes ( )

insertSignature() 공개 메소드

The signature element will be appended to the element, unless $beforeNode is specified. If $beforeNode is specified, the signature element will be inserted as the last element before $beforeNode.
public insertSignature ( $node, $beforeNode = null ) : DOMNode
$node The node the signature element should be inserted into.
$beforeNode The node the signature element should be located before.
리턴 DOMNode The signature element node

locateKey() 공개 메소드

public locateKey ( $node = null )

locateSignature() 공개 메소드

public locateSignature ( $objDoc, $pos )

processRefNode() 공개 메소드

public processRefNode ( $refNode )

processTransforms() 공개 메소드

public processTransforms ( $refNode, $objData, $includeCommentNodes = true )

setCanonicalMethod() 공개 메소드

public setCanonicalMethod ( $method )

sign() 공개 메소드

public sign ( $objKey, $appendToNode = null )

signData() 공개 메소드

public signData ( $objKey, $data )

staticAdd509Cert() 정적인 공개 메소드

static public staticAdd509Cert ( $parentRef, $cert, $isPEMFormat = true, $isURL = false, $xpath = null, $options = null )

staticGet509XCerts() 정적인 공개 메소드

static public staticGet509XCerts ( $certs, $isPEMFormat = true )

validateDigest() 공개 메소드

public validateDigest ( $refNode, $data )

validateReference() 공개 메소드

public validateReference ( )

verify() 공개 메소드

public verify ( $objKey )

프로퍼티 상세

$idKeys 공개적으로 프로퍼티

public $idKeys

$idNS 공개적으로 프로퍼티

public $idNS

$sigNode 공개적으로 프로퍼티

public $sigNode