|
1 | 1 | /*
|
2 |
| - * Copyright 2020-2021 the original author or authors. |
| 2 | + * Copyright 2020-2022 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
28 | 28 | * @since 0.1.1
|
29 | 29 | * @see <a target="_blank" href="https://openid.net/specs/openid-connect-registration-1_0.html#ClientMetadata">2. Client Metadata</a>
|
30 | 30 | */
|
31 |
| -public interface OidcClientMetadataClaimNames { |
| 31 | +public final class OidcClientMetadataClaimNames { |
32 | 32 |
|
33 | 33 | /**
|
34 | 34 | * {@code client_id} - the Client Identifier
|
35 | 35 | */
|
36 |
| - String CLIENT_ID = "client_id"; |
| 36 | + public static final String CLIENT_ID = "client_id"; |
37 | 37 |
|
38 | 38 | /**
|
39 | 39 | * {@code client_id_issued_at} - the time at which the Client Identifier was issued
|
40 | 40 | */
|
41 |
| - String CLIENT_ID_ISSUED_AT = "client_id_issued_at"; |
| 41 | + public static final String CLIENT_ID_ISSUED_AT = "client_id_issued_at"; |
42 | 42 |
|
43 | 43 | /**
|
44 | 44 | * {@code client_secret} - the Client Secret
|
45 | 45 | */
|
46 |
| - String CLIENT_SECRET = "client_secret"; |
| 46 | + public static final String CLIENT_SECRET = "client_secret"; |
47 | 47 |
|
48 | 48 | /**
|
49 | 49 | * {@code client_secret_expires_at} - the time at which the {@code client_secret} will expire or 0 if it will not expire
|
50 | 50 | */
|
51 |
| - String CLIENT_SECRET_EXPIRES_AT = "client_secret_expires_at"; |
| 51 | + public static final String CLIENT_SECRET_EXPIRES_AT = "client_secret_expires_at"; |
52 | 52 |
|
53 | 53 | /**
|
54 | 54 | * {@code client_name} - the name of the Client to be presented to the End-User
|
55 | 55 | */
|
56 |
| - String CLIENT_NAME = "client_name"; |
| 56 | + public static final String CLIENT_NAME = "client_name"; |
57 | 57 |
|
58 | 58 | /**
|
59 | 59 | * {@code redirect_uris} - the redirection {@code URI} values used by the Client
|
60 | 60 | */
|
61 |
| - String REDIRECT_URIS = "redirect_uris"; |
| 61 | + public static final String REDIRECT_URIS = "redirect_uris"; |
62 | 62 |
|
63 | 63 | /**
|
64 | 64 | * {@code token_endpoint_auth_method} - the authentication method used by the Client for the Token Endpoint
|
65 | 65 | */
|
66 |
| - String TOKEN_ENDPOINT_AUTH_METHOD = "token_endpoint_auth_method"; |
| 66 | + public static final String TOKEN_ENDPOINT_AUTH_METHOD = "token_endpoint_auth_method"; |
67 | 67 |
|
68 | 68 | /**
|
69 | 69 | * {@code token_endpoint_auth_signing_alg} - the {@link JwsAlgorithm JWS} algorithm that must be used for signing the {@link Jwt JWT}
|
70 | 70 | * used to authenticate the Client at the Token Endpoint for the {@link ClientAuthenticationMethod#PRIVATE_KEY_JWT private_key_jwt} and
|
71 | 71 | * {@link ClientAuthenticationMethod#CLIENT_SECRET_JWT client_secret_jwt} authentication methods
|
72 | 72 | * @since 0.2.2
|
73 | 73 | */
|
74 |
| - String TOKEN_ENDPOINT_AUTH_SIGNING_ALG = "token_endpoint_auth_signing_alg"; |
| 74 | + public static final String TOKEN_ENDPOINT_AUTH_SIGNING_ALG = "token_endpoint_auth_signing_alg"; |
75 | 75 |
|
76 | 76 | /**
|
77 | 77 | * {@code grant_types} - the OAuth 2.0 {@code grant_type} values that the Client will restrict itself to using
|
78 | 78 | */
|
79 |
| - String GRANT_TYPES = "grant_types"; |
| 79 | + public static final String GRANT_TYPES = "grant_types"; |
80 | 80 |
|
81 | 81 | /**
|
82 | 82 | * {@code response_types} - the OAuth 2.0 {@code response_type} values that the Client will restrict itself to using
|
83 | 83 | */
|
84 |
| - String RESPONSE_TYPES = "response_types"; |
| 84 | + public static final String RESPONSE_TYPES = "response_types"; |
85 | 85 |
|
86 | 86 | /**
|
87 | 87 | * {@code scope} - a space-separated list of OAuth 2.0 {@code scope} values that the Client will restrict itself to using
|
88 | 88 | */
|
89 |
| - String SCOPE = "scope"; |
| 89 | + public static final String SCOPE = "scope"; |
90 | 90 |
|
91 | 91 | /**
|
92 | 92 | * {@code jwks_uri} - the {@code URL} for the Client's JSON Web Key Set
|
93 | 93 | * @since 0.2.2
|
94 | 94 | */
|
95 |
| - String JWKS_URI = "jwks_uri"; |
| 95 | + public static final String JWKS_URI = "jwks_uri"; |
96 | 96 |
|
97 | 97 | /**
|
98 | 98 | * {@code id_token_signed_response_alg} - the {@link JwsAlgorithm JWS} algorithm required for signing the {@link OidcIdToken ID Token} issued to the Client
|
99 | 99 | */
|
100 |
| - String ID_TOKEN_SIGNED_RESPONSE_ALG = "id_token_signed_response_alg"; |
| 100 | + public static final String ID_TOKEN_SIGNED_RESPONSE_ALG = "id_token_signed_response_alg"; |
101 | 101 |
|
102 | 102 | /**
|
103 | 103 | * {@code registration_access_token} - the Registration Access Token that can be used at the Client Configuration Endpoint
|
104 | 104 | * @since 0.2.1
|
105 | 105 | */
|
106 |
| - String REGISTRATION_ACCESS_TOKEN = "registration_access_token"; |
| 106 | + public static final String REGISTRATION_ACCESS_TOKEN = "registration_access_token"; |
107 | 107 |
|
108 | 108 | /**
|
109 | 109 | * {@code registration_client_uri} - the {@code URL} of the Client Configuration Endpoint where the Registration Access Token can be used
|
110 | 110 | * @since 0.2.1
|
111 | 111 | */
|
112 |
| - String REGISTRATION_CLIENT_URI = "registration_client_uri"; |
| 112 | + public static final String REGISTRATION_CLIENT_URI = "registration_client_uri"; |
| 113 | + |
| 114 | + private OidcClientMetadataClaimNames() { |
| 115 | + } |
113 | 116 |
|
114 | 117 | }
|
0 commit comments