Class AuthorizationServerMetadata
java.lang.Object
co.ankatech.keymanagement.client.auth.model.AuthorizationServerMetadata
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class AuthorizationServerMetadata
extends Object
OAuth 2.0 authorization server metadata (RFC 8414 §2). The members a client of this service needs: the issuer its tokens carry, where to request a token, where to fetch the keys that verify it, and the algorithms a DPoP proof may use.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumGets or Sets dpopSigningAlgValuesSupported -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDpopSigningAlgValuesSupportedItem(AuthorizationServerMetadata.DpopSigningAlgValuesSupportedEnum dpopSigningAlgValuesSupportedItem) dpopSigningAlgValuesSupported(List<AuthorizationServerMetadata.DpopSigningAlgValuesSupportedEnum> dpopSigningAlgValuesSupported) booleanstatic AuthorizationServerMetadataCreate an instance of AuthorizationServerMetadata given an JSON stringThe JWS algorithms a DPoP proof may be signed with (RFC 9449 §5.1) when an administrative workload requests a DPoP-bound token.The wire values ofdpop_signing_alg_values_supported, in order: what the server sent, verbatim.The issuer identifier: the `iss` claim of every access token this service issues.The public URL of the JWK Set holding the keys that verify this service's access tokens.The public URL of the token endpoint.inthashCode()voidsetDpopSigningAlgValuesSupported(List<AuthorizationServerMetadata.DpopSigningAlgValuesSupportedEnum> dpopSigningAlgValuesSupported) voidvoidsetJwksUri(String jwksUri) voidsetTokenEndpoint(String tokenEndpoint) toJson()Convert an instance of AuthorizationServerMetadata to an JSON stringtokenEndpoint(String tokenEndpoint) toString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundstatic voidvalidateJsonElementAsCandidate(com.google.gson.JsonElement jsonElement) Validates the JSON Element as a candidate of a oneOf schema: the checks ofvalidateJsonElement(JsonElement), and the element carries no member this model does not declare.
-
Field Details
-
SERIALIZED_NAME_ISSUER
- See Also:
-
SERIALIZED_NAME_TOKEN_ENDPOINT
- See Also:
-
SERIALIZED_NAME_JWKS_URI
- See Also:
-
SERIALIZED_NAME_DPOP_SIGNING_ALG_VALUES_SUPPORTED
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
AuthorizationServerMetadata
public AuthorizationServerMetadata()
-
-
Method Details
-
getDpopSigningAlgValuesSupportedAsString
The wire values ofdpop_signing_alg_values_supported, in order: what the server sent, verbatim.- For a value this release declares, the same wire value the enum names.
- For a value it does not declare (one a later server added), the server's wire value verbatim,
while the matching element of
getDpopSigningAlgValuesSupported()readsUNKNOWN_DEFAULT_OPEN_API; writing this model sends that wire value back, never the sentinel. - For an absent member,
null.
- Returns:
- the wire values, or
nullwhen the member is absent
-
issuer
-
getIssuer
The issuer identifier: the `iss` claim of every access token this service issues. It names the platform's authorization server and is the same in every deployment; compare a token's `iss` with it, not with the URL this document was read from.- Returns:
- issuer
-
setIssuer
-
tokenEndpoint
-
getTokenEndpoint
The public URL of the token endpoint. A DPoP proof sent to it names this URL as its `htu`.- Returns:
- tokenEndpoint
-
setTokenEndpoint
-
jwksUri
-
getJwksUri
The public URL of the JWK Set holding the keys that verify this service's access tokens.- Returns:
- jwksUri
-
setJwksUri
-
dpopSigningAlgValuesSupported
public AuthorizationServerMetadata dpopSigningAlgValuesSupported(@Nonnull List<AuthorizationServerMetadata.DpopSigningAlgValuesSupportedEnum> dpopSigningAlgValuesSupported) -
addDpopSigningAlgValuesSupportedItem
public AuthorizationServerMetadata addDpopSigningAlgValuesSupportedItem(AuthorizationServerMetadata.DpopSigningAlgValuesSupportedEnum dpopSigningAlgValuesSupportedItem) -
getDpopSigningAlgValuesSupported
@Nonnull public List<AuthorizationServerMetadata.DpopSigningAlgValuesSupportedEnum> getDpopSigningAlgValuesSupported()The JWS algorithms a DPoP proof may be signed with (RFC 9449 §5.1) when an administrative workload requests a DPoP-bound token.- Returns:
- dpopSigningAlgValuesSupported
-
setDpopSigningAlgValuesSupported
public void setDpopSigningAlgValuesSupported(@Nonnull List<AuthorizationServerMetadata.DpopSigningAlgValuesSupportedEnum> dpopSigningAlgValuesSupported) -
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to AuthorizationServerMetadata
-
validateJsonElementAsCandidate
public static void validateJsonElementAsCandidate(com.google.gson.JsonElement jsonElement) throws IOException Validates the JSON Element as a candidate of a oneOf schema: the checks ofvalidateJsonElement(JsonElement), and the element carries no member this model does not declare. A oneOf schema without a discriminator tells its candidates apart by their member sets, so a candidate is matched on its closed member set.- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is not a AuthorizationServerMetadata
-
fromJson
Create an instance of AuthorizationServerMetadata given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AuthorizationServerMetadata
- Throws:
IOException- if the JSON string is invalid with respect to AuthorizationServerMetadata
-
toJson
Convert an instance of AuthorizationServerMetadata to an JSON string- Returns:
- JSON string
-