@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class OpenIdConnectAccessTokenConfigurationItem 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 OpenIdConnectTokenSelectionItem structure, which is a parameter of ListIdentitySources.
Constructor and Description |
---|
OpenIdConnectAccessTokenConfigurationItem() |
Modifier and Type | Method and Description |
---|---|
OpenIdConnectAccessTokenConfigurationItem |
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.
|
OpenIdConnectAccessTokenConfigurationItem |
withAudiences(Collection<String> audiences)
The access token
aud claim values that you want to accept in your policy store. |
OpenIdConnectAccessTokenConfigurationItem |
withAudiences(String... audiences)
The access token
aud claim values that you want to accept in your policy store. |
OpenIdConnectAccessTokenConfigurationItem |
withPrincipalIdClaim(String principalIdClaim)
The claim that determines the principal in OIDC access tokens.
|
public OpenIdConnectAccessTokenConfigurationItem()
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 OpenIdConnectAccessTokenConfigurationItem 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 OpenIdConnectAccessTokenConfigurationItem 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 OpenIdConnectAccessTokenConfigurationItem 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 Object
Object.toString()
public OpenIdConnectAccessTokenConfigurationItem clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.