@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class OpenIdConnectAccessTokenConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
The configuration of an OpenID Connect (OIDC) identity source for handling access token claims. Contains the claim
that you want to identify as the principal in an authorization request, and the values of the aud claim,
or audiences, that you want to accept.
This data type is part of a OpenIdConnectTokenSelection structure, which is a parameter of CreateIdentitySource.
| Constructor and Description |
|---|
OpenIdConnectAccessTokenConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
OpenIdConnectAccessTokenConfiguration |
clone() |
boolean |
equals(Object obj) |
List<String> |
getAudiences()
The access token
aud claim values that you want to accept in your policy store. |
String |
getPrincipalIdClaim()
The claim that determines the principal in OIDC access tokens.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setAudiences(Collection<String> audiences)
The access token
aud claim values that you want to accept in your policy store. |
void |
setPrincipalIdClaim(String principalIdClaim)
The claim that determines the principal in OIDC access tokens.
|
String |
toString()
Returns a string representation of this object.
|
OpenIdConnectAccessTokenConfiguration |
withAudiences(Collection<String> audiences)
The access token
aud claim values that you want to accept in your policy store. |
OpenIdConnectAccessTokenConfiguration |
withAudiences(String... audiences)
The access token
aud claim values that you want to accept in your policy store. |
OpenIdConnectAccessTokenConfiguration |
withPrincipalIdClaim(String principalIdClaim)
The claim that determines the principal in OIDC access tokens.
|
public OpenIdConnectAccessTokenConfiguration()
public void setPrincipalIdClaim(String principalIdClaim)
The claim that determines the principal in OIDC access tokens. For example, sub.
principalIdClaim - The claim that determines the principal in OIDC access tokens. For example, sub.public String getPrincipalIdClaim()
The claim that determines the principal in OIDC access tokens. For example, sub.
sub.public OpenIdConnectAccessTokenConfiguration withPrincipalIdClaim(String principalIdClaim)
The claim that determines the principal in OIDC access tokens. For example, sub.
principalIdClaim - The claim that determines the principal in OIDC access tokens. For example, sub.public List<String> getAudiences()
The access token aud claim values that you want to accept in your policy store. For example,
https://myapp.example.com, https://myapp2.example.com.
aud claim values that you want to accept in your policy store. For example,
https://myapp.example.com, https://myapp2.example.com.public void setAudiences(Collection<String> audiences)
The access token aud claim values that you want to accept in your policy store. For example,
https://myapp.example.com, https://myapp2.example.com.
audiences - The access token aud claim values that you want to accept in your policy store. For example,
https://myapp.example.com, https://myapp2.example.com.public OpenIdConnectAccessTokenConfiguration withAudiences(String... audiences)
The access token aud claim values that you want to accept in your policy store. For example,
https://myapp.example.com, https://myapp2.example.com.
NOTE: This method appends the values to the existing list (if any). Use
setAudiences(java.util.Collection) or withAudiences(java.util.Collection) if you want to
override the existing values.
audiences - The access token aud claim values that you want to accept in your policy store. For example,
https://myapp.example.com, https://myapp2.example.com.public OpenIdConnectAccessTokenConfiguration withAudiences(Collection<String> audiences)
The access token aud claim values that you want to accept in your policy store. For example,
https://myapp.example.com, https://myapp2.example.com.
audiences - The access token aud claim values that you want to accept in your policy store. For example,
https://myapp.example.com, https://myapp2.example.com.public String toString()
toString in class ObjectObject.toString()public OpenIdConnectAccessTokenConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.