GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

X509CertificateChain   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 12
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
1
<?php
2
3
namespace Emarref\Jwt\HeaderParameter;
4
5
/**
6
 * "x5c" (X.509 Certificate Chain) Header Parameter
7
 *
8
 * The "x5c" (X.509 Certificate Chain) Header Parameter contains the X.509 public key certificate or certificate chain
9
 * [RFC5280] corresponding to the key used to digitally sign the JWS.  The certificate or certificate chain is
10
 * represented as a JSON array of certificate value strings.  Each string in the array is a base64 encoded ([RFC4648]
11
 * Section 4 -- not base64url encoded) DER [ITU.X690.1994] PKIX certificate value.  The certificate containing the
12
 * public key corresponding to the key used to digitally sign the JWS MUST be the first certificate.  This MAY be
13
 * followed by additional certificates, with each subsequent certificate being the one used to certify the previous one.
14
 * The recipient MUST validate the certificate chain according to RFC 5280 [RFC5280] and reject the signature if any
15
 * validation failure occurs.  Use of this Header Parameter is OPTIONAL.
16
 *
17
 * See Appendix B for an example "x5c" value.
18
 */
19
class X509CertificateChain extends AbstractParameter
20
{
21
    const NAME = 'x5c';
22
23
    /**
24
     * @return string
25
     */
26
    public function getName()
27
    {
28
        return self::NAME;
29
    }
30
}
31