SetaPDF_Signer_Asn1_DistinguishedName Helper class to convert a DistinguishedName ASN.1 struncture into a string.

File: /SetaPDF v2/Signer/Asn1/DistinguishedName.php

Class hierarchy

Summary

Static Properties

$separator

The default separator for the resulting string.


Static Methods

getAsArray()

public static SetaPDF_Signer_Asn1_DistinguishedName::getAsArray (
SetaPDF_Signer_Asn1_Element $name [, bool $onlyKnown = true ]
): array

Converts a DistinguishedName ASN.1 element into an array.

Parameters
$name : SetaPDF_Signer_Asn1_Element
 
$onlyKnown : bool

Whether attributes with an unknown OID are returend or not.

Exceptions

Throws SetaPDF_Signer_Asn1_Exception

getAsString()

public static SetaPDF_Signer_Asn1_DistinguishedName::getAsString (
SetaPDF_Signer_Asn1_Element $name [, bool $onlyKnown = true ]
): string

Converts a DistinguishedName ASN.1 element into a string.

Parameters
$name : SetaPDF_Signer_Asn1_Element
 
$onlyKnown : bool

Whether attributes with an unknown OID are returend or not.

Exceptions

Throws SetaPDF_Signer_Asn1_Exception