ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
SAML2\Certificate\Fingerprint Class Reference

Simple representation of the fingerprint of a certificate. More...

+ Collaboration diagram for SAML2\Certificate\Fingerprint:

Public Member Functions

 __construct ($fingerPrint)
 
 getRaw ()
 Get the raw, unmodified fingerprint value. More...
 
 getNormalized ()
 
 equals (Fingerprint $fingerprint)
 

Private Attributes

 $contents
 

Detailed Description

Simple representation of the fingerprint of a certificate.

Deprecated:
Please use full certificates instead.

Definition at line 12 of file Fingerprint.php.

Constructor & Destructor Documentation

◆ __construct()

SAML2\Certificate\Fingerprint::__construct (   $fingerPrint)
Parameters
string$fingerPrint
Deprecated:
Please use full certificates instead.

Definition at line 24 of file Fingerprint.php.

References SAML2\Exception\InvalidArgumentException\invalidType().

25  {
26  if (!is_string($fingerPrint)) {
27  throw InvalidArgumentException::invalidType('string', $fingerPrint);
28  }
29 
30  $this->contents = $fingerPrint;
31  }
+ Here is the call graph for this function:

Member Function Documentation

◆ equals()

SAML2\Certificate\Fingerprint::equals ( Fingerprint  $fingerprint)
Parameters
\SAML2\Certificate\Fingerprint$fingerprint
Returns
bool

Definition at line 56 of file Fingerprint.php.

References SAML2\Certificate\Fingerprint\getNormalized().

57  {
58  return $this->getNormalized() === $fingerprint->getNormalized();
59  }
+ Here is the call graph for this function:

◆ getNormalized()

SAML2\Certificate\Fingerprint::getNormalized ( )
Returns
string

Definition at line 46 of file Fingerprint.php.

Referenced by SAML2\Certificate\Fingerprint\equals().

47  {
48  return strtolower(str_replace(':', '', $this->contents));
49  }
+ Here is the caller graph for this function:

◆ getRaw()

SAML2\Certificate\Fingerprint::getRaw ( )

Get the raw, unmodified fingerprint value.

Returns
string

Definition at line 38 of file Fingerprint.php.

References SAML2\Certificate\Fingerprint\$contents.

39  {
40  return $this->contents;
41  }

Field Documentation

◆ $contents

SAML2\Certificate\Fingerprint::$contents
private

Definition at line 17 of file Fingerprint.php.

Referenced by SAML2\Certificate\Fingerprint\getRaw().


The documentation for this class was generated from the following file: