PHP Class Attribute_Provider

Exibir arquivo Open project: openid/php-openid

Public Methods

Method Description
__construct ( string $public_key_certificate, string $private_key, string $notBefore, string $notOnOrAfter, string $rsadsa, string $acsURI, string $assertionTemplate ) Creates an Attribute_Provider object initialized with startup values.
sign ( string $openid, string $attribute, string $value ) Create the signed assertion.

Method Details

__construct() public method

Creates an Attribute_Provider object initialized with startup values.
public __construct ( string $public_key_certificate, string $private_key, string $notBefore, string $notOnOrAfter, string $rsadsa, string $acsURI, string $assertionTemplate )
$public_key_certificate string - The public key certificate of the signer.
$private_key string - The private key of the signer.
$notBefore string - Certificate validity time
$notOnOrAfter string - Certificate validity time
$rsadsa string - Choice of the algorithm (RSA/DSA)
$acsURI string - URI of the signer.
$assertionTemplate string - SAML template used for assertion

sign() public method

Create the signed assertion.
public sign ( string $openid, string $attribute, string $value )
$openid string - Openid of the entity being asserted.
$attribute string - The attribute name being asserted.
$value string - The attribute value being asserted.