API Documentation

InfoCard/Xml/Security.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_InfoCard
subpackage
Zend_InfoCard_Xml_Security
version
$Id: Security.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_InfoCard_Xml_Security

Description

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Zend_InfoCard_Xml_Security

category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_InfoCard
subpackage
Zend_InfoCard_Xml_Security
Constants
ASN_TYPE_INTEGER
ASN_TYPE_BITSTRING
ASN_TYPE_SEQUENCE
CANONICAL_METHOD_C14N_EXC
SIGNATURE_METHOD_SHA1
DIGEST_METHOD_SHA1
RSA_KEY_IDENTIFIER
Methods
__construct
validateXMLSignature
_getPublicKeyFromModExp
_encodeValue

Description

Constants

ASN_TYPE_INTEGER

 ASN_TYPE_INTEGER = '0x02'

ASN.1 type INTEGER class

Details

value
0x02

ASN_TYPE_BITSTRING

 ASN_TYPE_BITSTRING = '0x03'

ASN.1 type BIT STRING class

Details

value
0x03

ASN_TYPE_SEQUENCE

 ASN_TYPE_SEQUENCE = '0x30'

ASN.1 type SEQUENCE class

Details

value
0x30

CANONICAL_METHOD_C14N_EXC

 CANONICAL_METHOD_C14N_EXC = 'http://www.w3.org/2001/10/xml-exc-c14n#'

The URI for Canonical Method C14N Exclusive

Details

value
http://www.w3.org/2001/10/xml-exc-c14n#

SIGNATURE_METHOD_SHA1

 SIGNATURE_METHOD_SHA1 = 'http://www.w3.org/2000/09/xmldsig#rsa-sha1'

The URI for Signature Method SHA1

Details

value
http://www.w3.org/2000/09/xmldsig#rsa-sha1

DIGEST_METHOD_SHA1

 DIGEST_METHOD_SHA1 = 'http://www.w3.org/2000/09/xmldsig#sha1'

The URI for Digest Method SHA1

Details

value
http://www.w3.org/2000/09/xmldsig#sha1

RSA_KEY_IDENTIFIER

 RSA_KEY_IDENTIFIER = '300D06092A864886F70D0101010500'

The Identifier for RSA Keys

Details

value
300D06092A864886F70D0101010500

Methods

__construct

__construct( ) : void

Constructor (disabled)

Details
visibility
private
final
false
static
false

_encodeValue

_encodeValue( string $data, const $type ) : string

Encode a limited set of data types into ASN.1 encoding format which is used in X.509 certificates

Arguments
$data
string
The data to encode
$type
const
The encoding format constant
Output
string
The encoded value
Details
visibility
protected
final
false
static
true
throws

_getPublicKeyFromModExp

_getPublicKeyFromModExp( string $modulus, string $exponent ) : string

Transform an RSA Key in Modulus/Exponent format into a PEM encoding and return an openssl resource for it

Arguments
$modulus
string
The RSA Modulus in binary format
$exponent
string
The RSA exponent in binary format
Output
string
The PEM encoded version of the key
Details
visibility
protected
final
false
static
true

validateXMLSignature

validateXMLSignature( string $strXMLInput ) : bool

Validates the signature of a provided XML block

Arguments
$strXMLInput
string
An XML block containing a Signature
Output
bool
True if the signature validated, false otherwise
Details
visibility
public
final
false
static
true
throws
Documentation was generated by DocBlox.