setasign\SetaPDF2\Signer\Asn1

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

File: /SetaPDF v2/Signer/Asn1/DistinguishedName.php
Old class name (alias): \SetaPDF_Signer_Asn1_DistinguishedName

Class hierarchy

Summary

Static Properties

$separator

static public string DistinguishedName::$separator = '/'

The default separator for the resulting string.


Static Methods

getAsArray()

public static 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 Exception

getAsString()

public static 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 Exception