@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class JWTConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Represents the configuration of a JWT authorizer. Required for the JWT authorizer type. Supported only for HTTP APIs.
Constructor and Description |
---|
JWTConfiguration() |
Modifier and Type | Method and Description |
---|---|
JWTConfiguration |
clone() |
boolean |
equals(Object obj) |
List<String> |
getAudience()
A list of the intended recipients of the JWT.
|
String |
getIssuer()
The base domain of the identity provider that issues JSON Web Tokens.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAudience(Collection<String> audience)
A list of the intended recipients of the JWT.
|
void |
setIssuer(String issuer)
The base domain of the identity provider that issues JSON Web Tokens.
|
String |
toString()
Returns a string representation of this object.
|
JWTConfiguration |
withAudience(Collection<String> audience)
A list of the intended recipients of the JWT.
|
JWTConfiguration |
withAudience(String... audience)
A list of the intended recipients of the JWT.
|
JWTConfiguration |
withIssuer(String issuer)
The base domain of the identity provider that issues JSON Web Tokens.
|
public List<String> getAudience()
A list of the intended recipients of the JWT. A valid JWT must provide an aud that matches at least one entry in this list. See RFC 7519. Supported only for HTTP APIs.
public void setAudience(Collection<String> audience)
A list of the intended recipients of the JWT. A valid JWT must provide an aud that matches at least one entry in this list. See RFC 7519. Supported only for HTTP APIs.
audience
- A list of the intended recipients of the JWT. A valid JWT must provide an aud that matches at least one
entry in this list. See RFC 7519.
Supported only for HTTP APIs.public JWTConfiguration withAudience(String... audience)
A list of the intended recipients of the JWT. A valid JWT must provide an aud that matches at least one entry in this list. See RFC 7519. Supported only for HTTP APIs.
NOTE: This method appends the values to the existing list (if any). Use
setAudience(java.util.Collection)
or withAudience(java.util.Collection)
if you want to override
the existing values.
audience
- A list of the intended recipients of the JWT. A valid JWT must provide an aud that matches at least one
entry in this list. See RFC 7519.
Supported only for HTTP APIs.public JWTConfiguration withAudience(Collection<String> audience)
A list of the intended recipients of the JWT. A valid JWT must provide an aud that matches at least one entry in this list. See RFC 7519. Supported only for HTTP APIs.
audience
- A list of the intended recipients of the JWT. A valid JWT must provide an aud that matches at least one
entry in this list. See RFC 7519.
Supported only for HTTP APIs.public void setIssuer(String issuer)
The base domain of the identity provider that issues JSON Web Tokens. For example, an Amazon Cognito user pool
has the following format:
https://cognito-idp.
issuer
- The base domain of the identity provider that issues JSON Web Tokens. For example, an Amazon Cognito user
pool has the following format:
https://cognito-idp.public String getIssuer()
The base domain of the identity provider that issues JSON Web Tokens. For example, an Amazon Cognito user pool
has the following format:
https://cognito-idp.
public JWTConfiguration withIssuer(String issuer)
The base domain of the identity provider that issues JSON Web Tokens. For example, an Amazon Cognito user pool
has the following format:
https://cognito-idp.
issuer
- The base domain of the identity provider that issues JSON Web Tokens. For example, an Amazon Cognito user
pool has the following format:
https://cognito-idp.public String toString()
toString
in class Object
Object.toString()
public JWTConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.