public class IdentityProviderType extends Object implements Serializable
A container for information about an identity provider.
| Constructor and Description |
|---|
IdentityProviderType() |
| Modifier and Type | Method and Description |
|---|---|
IdentityProviderType |
addAttributeMappingEntry(String key,
String value)
A mapping of identity provider attributes to standard and custom user
pool attributes.
|
IdentityProviderType |
addProviderDetailsEntry(String key,
String value)
The identity provider details.
|
IdentityProviderType |
clearAttributeMappingEntries()
Removes all the entries added into AttributeMapping.
|
IdentityProviderType |
clearProviderDetailsEntries()
Removes all the entries added into ProviderDetails.
|
boolean |
equals(Object obj) |
Map<String,String> |
getAttributeMapping()
A mapping of identity provider attributes to standard and custom user
pool attributes.
|
Date |
getCreationDate()
The date the identity provider was created.
|
List<String> |
getIdpIdentifiers()
A list of identity provider identifiers.
|
Date |
getLastModifiedDate()
The date the identity provider was last modified.
|
Map<String,String> |
getProviderDetails()
The identity provider details.
|
String |
getProviderName()
The identity provider name.
|
String |
getProviderType()
The identity provider type.
|
String |
getUserPoolId()
The user pool ID.
|
int |
hashCode() |
void |
setAttributeMapping(Map<String,String> attributeMapping)
A mapping of identity provider attributes to standard and custom user
pool attributes.
|
void |
setCreationDate(Date creationDate)
The date the identity provider was created.
|
void |
setIdpIdentifiers(Collection<String> idpIdentifiers)
A list of identity provider identifiers.
|
void |
setLastModifiedDate(Date lastModifiedDate)
The date the identity provider was last modified.
|
void |
setProviderDetails(Map<String,String> providerDetails)
The identity provider details.
|
void |
setProviderName(String providerName)
The identity provider name.
|
void |
setProviderType(IdentityProviderTypeType providerType)
The identity provider type.
|
void |
setProviderType(String providerType)
The identity provider type.
|
void |
setUserPoolId(String userPoolId)
The user pool ID.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
IdentityProviderType |
withAttributeMapping(Map<String,String> attributeMapping)
A mapping of identity provider attributes to standard and custom user
pool attributes.
|
IdentityProviderType |
withCreationDate(Date creationDate)
The date the identity provider was created.
|
IdentityProviderType |
withIdpIdentifiers(Collection<String> idpIdentifiers)
A list of identity provider identifiers.
|
IdentityProviderType |
withIdpIdentifiers(String... idpIdentifiers)
A list of identity provider identifiers.
|
IdentityProviderType |
withLastModifiedDate(Date lastModifiedDate)
The date the identity provider was last modified.
|
IdentityProviderType |
withProviderDetails(Map<String,String> providerDetails)
The identity provider details.
|
IdentityProviderType |
withProviderName(String providerName)
The identity provider name.
|
IdentityProviderType |
withProviderType(IdentityProviderTypeType providerType)
The identity provider type.
|
IdentityProviderType |
withProviderType(String providerType)
The identity provider type.
|
IdentityProviderType |
withUserPoolId(String userPoolId)
The user pool ID.
|
public String getUserPoolId()
The user pool ID.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
The user pool ID.
public void setUserPoolId(String userPoolId)
The user pool ID.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
userPoolId - The user pool ID.
public IdentityProviderType withUserPoolId(String userPoolId)
The user pool ID.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
userPoolId - The user pool ID.
public String getProviderName()
The identity provider name.
Constraints:
Length: 1 - 32
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
The identity provider name.
public void setProviderName(String providerName)
The identity provider name.
Constraints:
Length: 1 - 32
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
providerName - The identity provider name.
public IdentityProviderType withProviderName(String providerName)
The identity provider name.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 32
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
providerName - The identity provider name.
public String getProviderType()
The identity provider type.
Constraints:
Allowed Values: SAML, Facebook, Google, LoginWithAmazon,
SignInWithApple, OIDC
The identity provider type.
IdentityProviderTypeTypepublic void setProviderType(String providerType)
The identity provider type.
Constraints:
Allowed Values: SAML, Facebook, Google, LoginWithAmazon,
SignInWithApple, OIDC
providerType - The identity provider type.
IdentityProviderTypeTypepublic IdentityProviderType withProviderType(String providerType)
The identity provider type.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: SAML, Facebook, Google, LoginWithAmazon,
SignInWithApple, OIDC
providerType - The identity provider type.
IdentityProviderTypeTypepublic void setProviderType(IdentityProviderTypeType providerType)
The identity provider type.
Constraints:
Allowed Values: SAML, Facebook, Google, LoginWithAmazon,
SignInWithApple, OIDC
providerType - The identity provider type.
IdentityProviderTypeTypepublic IdentityProviderType withProviderType(IdentityProviderTypeType providerType)
The identity provider type.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: SAML, Facebook, Google, LoginWithAmazon,
SignInWithApple, OIDC
providerType - The identity provider type.
IdentityProviderTypeTypepublic Map<String,String> getProviderDetails()
The identity provider details. The following list describes the provider detail keys for each identity provider type.
For Google, Facebook and Login with Amazon:
client_id
client_secret
authorize_scopes
For Sign in with Apple:
client_id
team_id
key_id
private_key
authorize_scopes
For OIDC providers:
client_id
client_secret
attributes_request_method
oidc_issuer
authorize_scopes
authorize_url if not available from discovery URL specified by oidc_issuer key
token_url if not available from discovery URL specified by oidc_issuer key
attributes_url if not available from discovery URL specified by oidc_issuer key
jwks_uri if not available from discovery URL specified by oidc_issuer key
authorize_scopes
For SAML providers:
MetadataFile OR MetadataURL
IDPSignOut optional
The identity provider details. The following list describes the provider detail keys for each identity provider type.
For Google, Facebook and Login with Amazon:
client_id
client_secret
authorize_scopes
For Sign in with Apple:
client_id
team_id
key_id
private_key
authorize_scopes
For OIDC providers:
client_id
client_secret
attributes_request_method
oidc_issuer
authorize_scopes
authorize_url if not available from discovery URL specified by oidc_issuer key
token_url if not available from discovery URL specified by oidc_issuer key
attributes_url if not available from discovery URL specified by oidc_issuer key
jwks_uri if not available from discovery URL specified by oidc_issuer key
authorize_scopes
For SAML providers:
MetadataFile OR MetadataURL
IDPSignOut optional
public void setProviderDetails(Map<String,String> providerDetails)
The identity provider details. The following list describes the provider detail keys for each identity provider type.
For Google, Facebook and Login with Amazon:
client_id
client_secret
authorize_scopes
For Sign in with Apple:
client_id
team_id
key_id
private_key
authorize_scopes
For OIDC providers:
client_id
client_secret
attributes_request_method
oidc_issuer
authorize_scopes
authorize_url if not available from discovery URL specified by oidc_issuer key
token_url if not available from discovery URL specified by oidc_issuer key
attributes_url if not available from discovery URL specified by oidc_issuer key
jwks_uri if not available from discovery URL specified by oidc_issuer key
authorize_scopes
For SAML providers:
MetadataFile OR MetadataURL
IDPSignOut optional
providerDetails - The identity provider details. The following list describes the provider detail keys for each identity provider type.
For Google, Facebook and Login with Amazon:
client_id
client_secret
authorize_scopes
For Sign in with Apple:
client_id
team_id
key_id
private_key
authorize_scopes
For OIDC providers:
client_id
client_secret
attributes_request_method
oidc_issuer
authorize_scopes
authorize_url if not available from discovery URL specified by oidc_issuer key
token_url if not available from discovery URL specified by oidc_issuer key
attributes_url if not available from discovery URL specified by oidc_issuer key
jwks_uri if not available from discovery URL specified by oidc_issuer key
authorize_scopes
For SAML providers:
MetadataFile OR MetadataURL
IDPSignOut optional
public IdentityProviderType withProviderDetails(Map<String,String> providerDetails)
The identity provider details. The following list describes the provider detail keys for each identity provider type.
For Google, Facebook and Login with Amazon:
client_id
client_secret
authorize_scopes
For Sign in with Apple:
client_id
team_id
key_id
private_key
authorize_scopes
For OIDC providers:
client_id
client_secret
attributes_request_method
oidc_issuer
authorize_scopes
authorize_url if not available from discovery URL specified by oidc_issuer key
token_url if not available from discovery URL specified by oidc_issuer key
attributes_url if not available from discovery URL specified by oidc_issuer key
jwks_uri if not available from discovery URL specified by oidc_issuer key
authorize_scopes
For SAML providers:
MetadataFile OR MetadataURL
IDPSignOut optional
Returns a reference to this object so that method calls can be chained together.
providerDetails - The identity provider details. The following list describes the provider detail keys for each identity provider type.
For Google, Facebook and Login with Amazon:
client_id
client_secret
authorize_scopes
For Sign in with Apple:
client_id
team_id
key_id
private_key
authorize_scopes
For OIDC providers:
client_id
client_secret
attributes_request_method
oidc_issuer
authorize_scopes
authorize_url if not available from discovery URL specified by oidc_issuer key
token_url if not available from discovery URL specified by oidc_issuer key
attributes_url if not available from discovery URL specified by oidc_issuer key
jwks_uri if not available from discovery URL specified by oidc_issuer key
authorize_scopes
For SAML providers:
MetadataFile OR MetadataURL
IDPSignOut optional
public IdentityProviderType addProviderDetailsEntry(String key, String value)
The identity provider details. The following list describes the provider detail keys for each identity provider type.
For Google, Facebook and Login with Amazon:
client_id
client_secret
authorize_scopes
For Sign in with Apple:
client_id
team_id
key_id
private_key
authorize_scopes
For OIDC providers:
client_id
client_secret
attributes_request_method
oidc_issuer
authorize_scopes
authorize_url if not available from discovery URL specified by oidc_issuer key
token_url if not available from discovery URL specified by oidc_issuer key
attributes_url if not available from discovery URL specified by oidc_issuer key
jwks_uri if not available from discovery URL specified by oidc_issuer key
authorize_scopes
For SAML providers:
MetadataFile OR MetadataURL
IDPSignOut optional
The method adds a new key-value pair into ProviderDetails parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into ProviderDetails.value - The corresponding value of the entry to be added into
ProviderDetails.public IdentityProviderType clearProviderDetailsEntries()
Returns a reference to this object so that method calls can be chained together.
public Map<String,String> getAttributeMapping()
A mapping of identity provider attributes to standard and custom user pool attributes.
A mapping of identity provider attributes to standard and custom user pool attributes.
public void setAttributeMapping(Map<String,String> attributeMapping)
A mapping of identity provider attributes to standard and custom user pool attributes.
attributeMapping - A mapping of identity provider attributes to standard and custom user pool attributes.
public IdentityProviderType withAttributeMapping(Map<String,String> attributeMapping)
A mapping of identity provider attributes to standard and custom user pool attributes.
Returns a reference to this object so that method calls can be chained together.
attributeMapping - A mapping of identity provider attributes to standard and custom user pool attributes.
public IdentityProviderType addAttributeMappingEntry(String key, String value)
A mapping of identity provider attributes to standard and custom user pool attributes.
The method adds a new key-value pair into AttributeMapping parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into AttributeMapping.value - The corresponding value of the entry to be added into
AttributeMapping.public IdentityProviderType clearAttributeMappingEntries()
Returns a reference to this object so that method calls can be chained together.
public List<String> getIdpIdentifiers()
A list of identity provider identifiers.
A list of identity provider identifiers.
public void setIdpIdentifiers(Collection<String> idpIdentifiers)
A list of identity provider identifiers.
idpIdentifiers - A list of identity provider identifiers.
public IdentityProviderType withIdpIdentifiers(String... idpIdentifiers)
A list of identity provider identifiers.
Returns a reference to this object so that method calls can be chained together.
idpIdentifiers - A list of identity provider identifiers.
public IdentityProviderType withIdpIdentifiers(Collection<String> idpIdentifiers)
A list of identity provider identifiers.
Returns a reference to this object so that method calls can be chained together.
idpIdentifiers - A list of identity provider identifiers.
public Date getLastModifiedDate()
The date the identity provider was last modified.
The date the identity provider was last modified.
public void setLastModifiedDate(Date lastModifiedDate)
The date the identity provider was last modified.
lastModifiedDate - The date the identity provider was last modified.
public IdentityProviderType withLastModifiedDate(Date lastModifiedDate)
The date the identity provider was last modified.
Returns a reference to this object so that method calls can be chained together.
lastModifiedDate - The date the identity provider was last modified.
public Date getCreationDate()
The date the identity provider was created.
The date the identity provider was created.
public void setCreationDate(Date creationDate)
The date the identity provider was created.
creationDate - The date the identity provider was created.
public IdentityProviderType withCreationDate(Date creationDate)
The date the identity provider was created.
Returns a reference to this object so that method calls can be chained together.
creationDate - The date the identity provider was created.
public String toString()
toString in class ObjectObject.toString()Copyright © 2020. All rights reserved.