Skip to content

Commit 08b8b4a

Browse files
committed
Add enum class to represent JWK parameters.
1 parent 8b56f6d commit 08b8b4a

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

src/Enum/Jwk/Parameter.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
namespace Pdsinterop\Solid\Auth\Enum\Jwk;
4+
5+
class Parameter
6+
{
7+
public const ALGORITHM = 'alg';
8+
9+
public const KEY_ID = 'kid';
10+
11+
public const KEY_OPERATIONS = 'key_ops';
12+
13+
public const KEY_TYPE = 'kty';
14+
15+
public const PUBLIC_KEY_USE = 'use';
16+
17+
public const X_509_CERTIFICATE_CHAIN = 'x5c';
18+
19+
public const X_509_CERTIFICATE_SHA_1_THUMBPRINT = 'x5t';
20+
21+
public const X_509_CERTIFICATE_SHA_256_THUMBPRINT = 'x5t#S256';
22+
23+
public const X_509_URL = 'x5u';
24+
}

0 commit comments

Comments
 (0)