Class PopTokenRequestContext
java.lang.Object
com.azure.core.credential.TokenRequestContext
com.azure.core.experimental.credential.PopTokenRequestContext
The context for a Proof of Possession token request.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of the PopTokenRequestContext. -
Method Summary
Modifier and TypeMethodDescriptionAdds scopes required for the token.Gets the claims required for the token.Gets the proof of possession nonce.Gets the HTTP method.Gets the Request resource URL for PoP authentication flow.Gets the tenant id.booleanGets whether the client is enabled for Certificate Authority Encryption.booleanChecks if the proof of possession is enabled.setCaeEnabled(boolean caeEnabled) Sets the scopes required for the token.Sets the scopes required for the token.setProofOfPossessionEnabled(boolean enableProofOfPossession) Sets the proof of possession enabled flag.setProofOfPossessionNonce(String proofOfPossessionNonce) Sets the scopes required for the token.setResourceRequestMethod(HttpMethod resourceRequestMethod) Sets the HTTP method for the resource.setResourceRequestUrl(URL resourceRequestUrl) Sets the Request resource URL for PoP authentication flow.setTenantId(String tenantId) Sets the scopes required for the token.Methods inherited from class com.azure.core.credential.TokenRequestContext
getScopes, setScopes
-
Constructor Details
-
PopTokenRequestContext
public PopTokenRequestContext()Creates a new instance of the PopTokenRequestContext.
-
-
Method Details
-
addScopes
Adds scopes required for the token.- Overrides:
addScopesin classTokenRequestContext- Parameters:
scopes- The scopes required for the token.- Returns:
- The updated PopTokenRequestContext object.
-
setClaims
Sets the scopes required for the token.- Overrides:
setClaimsin classTokenRequestContext- Parameters:
claims- The claims required for the token.- Returns:
- The updated PopTokenRequestContext object.
-
setTenantId
Sets the scopes required for the token.- Overrides:
setTenantIdin classTokenRequestContext- Parameters:
tenantId- The tenant id.- Returns:
- The updated PopTokenRequestContext object.
-
setCaeEnabled
Sets the scopes required for the token.- Overrides:
setCaeEnabledin classTokenRequestContext- Parameters:
caeEnabled- Whether the client is enabled for Certificate Authority Encryption.- Returns:
- The updated PopTokenRequestContext object.
-
setProofOfPossessionNonce
Sets the scopes required for the token.- Parameters:
proofOfPossessionNonce- The proof of possession nonce.- Returns:
- The updated PopTokenRequestContext object.
-
getClaims
Gets the claims required for the token.- Overrides:
getClaimsin classTokenRequestContext- Returns:
- The claims required for the token.
-
getTenantId
Gets the tenant id.- Overrides:
getTenantIdin classTokenRequestContext- Returns:
- The tenant id.
-
isCaeEnabled
public boolean isCaeEnabled()Gets whether the client is enabled for Certificate Authority Encryption.- Overrides:
isCaeEnabledin classTokenRequestContext- Returns:
- Whether the client is enabled for Certificate Authority Encryption.
-
getProofOfPossessionNonce
Gets the proof of possession nonce.- Returns:
- The proof of possession nonce.
-
getResourceRequestMethod
Gets the HTTP method.- Returns:
- The HTTP method.
-
setResourceRequestMethod
Sets the HTTP method for the resource.- Parameters:
resourceRequestMethod- the HTTP method to set- Returns:
- The updated PopTokenRequestContext
-
getResourceRequestUrl
Gets the Request resource URL for PoP authentication flow.- Returns:
- The URL.
-
setResourceRequestUrl
Sets the Request resource URL for PoP authentication flow.- Parameters:
resourceRequestUrl- the request URL to set.- Returns:
- The updated PopTokenRequestContext.
-
setProofOfPossessionEnabled
Sets the proof of possession enabled flag.- Parameters:
enableProofOfPossession- the flag indicating whether proof of possession is enabled or not.- Returns:
- the current instance of TokenRequestContext.
-
isProofOfPossessionEnabled
public boolean isProofOfPossessionEnabled()Checks if the proof of possession is enabled.- Returns:
- true if the proof of possession is enabled, false otherwise.
-