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.
Completed
Push — master ( 74ce6a...af33f1 )
by Joni
05:36
created

ES512Algorithm   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 3
c 1
b 0
f 1
lcom 0
cbo 1
dl 0
loc 14
ccs 6
cts 6
cp 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A _curveName() 0 3 1
A _mdMethod() 0 3 1
A algorithmParamValue() 0 3 1
1
<?php
2
3
namespace JWX\JWS\Algorithm;
4
5
use JWX\JWA\JWA;
6
use JWX\JWK\Parameter\CurveParameter;
7
8
9
/**
10
 * Implements ECDSA using P-521 and SHA-512.
11
 *
12
 * @link https://tools.ietf.org/html/rfc7518#section-3.4
13
 */
14
class ES512Algorithm extends ECDSAAlgorithm
15
{
16 8
	protected function _curveName() {
17 8
		return CurveParameter::CURVE_P521;
18
	}
19
	
20 4
	protected function _mdMethod() {
21 4
		return "sha512";
22
	}
23
	
24 4
	public function algorithmParamValue() {
25 4
		return JWA::ALGO_ES512;
26
	}
27
}
28