
com.amazonaws.services.cognitoidentityprovider.model.GetOpenIdConfigurationResult Maven / Gradle / Ivy
Show all versions of aws-android-sdk-cognitoidentityprovider Show documentation
/*
* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
package com.amazonaws.services.cognitoidentityprovider.model;
import java.io.Serializable;
/**
*
* Represents the response from the server to get the Open ID
* configuration information.
*
*/
public class GetOpenIdConfigurationResult implements Serializable {
/**
* The issuer of the Open ID configuration response.
*
* Constraints:
* Length: 1 - 150
* Pattern: https://cognito-idp\.amazonaws\.com/[\w\._/-]
*/
private String issuer;
/**
* The URI of the JSON Web keys in the server response to get Open ID
* configuration information.
*
* Constraints:
* Length: 1 - 150
* Pattern: https://cognito-idp\.amazonaws\.com/[\w\._/-]
*/
private String jwks_uri;
/**
* The authorization endpoint returned by the server response to get the
* Open ID configuration information.
*
* Constraints:
* Length: 1 - 150
* Pattern: https://cognito-idp\.amazonaws\.com/[\w\._/-]
*/
private String authorization_endpoint;
/**
* The subject types supported returned by the server response to get the
* Open ID configuration information.
*/
private com.amazonaws.internal.ListWithAutoConstructFlag subject_types_supported;
/**
* The response types supported returned by the server response to get
* the Open ID configuration information.
*/
private com.amazonaws.internal.ListWithAutoConstructFlag response_types_supported;
/**
* The token-signing algorithm values supported returned by the server
* response to get the Open ID configuration information.
*/
private com.amazonaws.internal.ListWithAutoConstructFlag id_token_signing_alg_values_supported;
/**
* The issuer of the Open ID configuration response.
*
* Constraints:
* Length: 1 - 150
* Pattern: https://cognito-idp\.amazonaws\.com/[\w\._/-]
*
* @return The issuer of the Open ID configuration response.
*/
public String getIssuer() {
return issuer;
}
/**
* The issuer of the Open ID configuration response.
*
* Constraints:
* Length: 1 - 150
* Pattern: https://cognito-idp\.amazonaws\.com/[\w\._/-]
*
* @param issuer The issuer of the Open ID configuration response.
*/
public void setIssuer(String issuer) {
this.issuer = issuer;
}
/**
* The issuer of the Open ID configuration response.
*
* Returns a reference to this object so that method calls can be chained together.
*
* Constraints:
* Length: 1 - 150
* Pattern: https://cognito-idp\.amazonaws\.com/[\w\._/-]
*
* @param issuer The issuer of the Open ID configuration response.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public GetOpenIdConfigurationResult withIssuer(String issuer) {
this.issuer = issuer;
return this;
}
/**
* The URI of the JSON Web keys in the server response to get Open ID
* configuration information.
*
* Constraints:
* Length: 1 - 150
* Pattern: https://cognito-idp\.amazonaws\.com/[\w\._/-]
*
* @return The URI of the JSON Web keys in the server response to get Open ID
* configuration information.
*/
public String getJwks_uri() {
return jwks_uri;
}
/**
* The URI of the JSON Web keys in the server response to get Open ID
* configuration information.
*
* Constraints:
* Length: 1 - 150
* Pattern: https://cognito-idp\.amazonaws\.com/[\w\._/-]
*
* @param jwks_uri The URI of the JSON Web keys in the server response to get Open ID
* configuration information.
*/
public void setJwks_uri(String jwks_uri) {
this.jwks_uri = jwks_uri;
}
/**
* The URI of the JSON Web keys in the server response to get Open ID
* configuration information.
*
* Returns a reference to this object so that method calls can be chained together.
*
* Constraints:
* Length: 1 - 150
* Pattern: https://cognito-idp\.amazonaws\.com/[\w\._/-]
*
* @param jwks_uri The URI of the JSON Web keys in the server response to get Open ID
* configuration information.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public GetOpenIdConfigurationResult withJwks_uri(String jwks_uri) {
this.jwks_uri = jwks_uri;
return this;
}
/**
* The authorization endpoint returned by the server response to get the
* Open ID configuration information.
*
* Constraints:
* Length: 1 - 150
* Pattern: https://cognito-idp\.amazonaws\.com/[\w\._/-]
*
* @return The authorization endpoint returned by the server response to get the
* Open ID configuration information.
*/
public String getAuthorization_endpoint() {
return authorization_endpoint;
}
/**
* The authorization endpoint returned by the server response to get the
* Open ID configuration information.
*
* Constraints:
* Length: 1 - 150
* Pattern: https://cognito-idp\.amazonaws\.com/[\w\._/-]
*
* @param authorization_endpoint The authorization endpoint returned by the server response to get the
* Open ID configuration information.
*/
public void setAuthorization_endpoint(String authorization_endpoint) {
this.authorization_endpoint = authorization_endpoint;
}
/**
* The authorization endpoint returned by the server response to get the
* Open ID configuration information.
*
* Returns a reference to this object so that method calls can be chained together.
*
* Constraints:
* Length: 1 - 150
* Pattern: https://cognito-idp\.amazonaws\.com/[\w\._/-]
*
* @param authorization_endpoint The authorization endpoint returned by the server response to get the
* Open ID configuration information.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public GetOpenIdConfigurationResult withAuthorization_endpoint(String authorization_endpoint) {
this.authorization_endpoint = authorization_endpoint;
return this;
}
/**
* The subject types supported returned by the server response to get the
* Open ID configuration information.
*
* @return The subject types supported returned by the server response to get the
* Open ID configuration information.
*/
public java.util.List getSubject_types_supported() {
if (subject_types_supported == null) {
subject_types_supported = new com.amazonaws.internal.ListWithAutoConstructFlag();
subject_types_supported.setAutoConstruct(true);
}
return subject_types_supported;
}
/**
* The subject types supported returned by the server response to get the
* Open ID configuration information.
*
* @param subject_types_supported The subject types supported returned by the server response to get the
* Open ID configuration information.
*/
public void setSubject_types_supported(java.util.Collection subject_types_supported) {
if (subject_types_supported == null) {
this.subject_types_supported = null;
return;
}
com.amazonaws.internal.ListWithAutoConstructFlag subject_types_supportedCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(subject_types_supported.size());
subject_types_supportedCopy.addAll(subject_types_supported);
this.subject_types_supported = subject_types_supportedCopy;
}
/**
* The subject types supported returned by the server response to get the
* Open ID configuration information.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param subject_types_supported The subject types supported returned by the server response to get the
* Open ID configuration information.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public GetOpenIdConfigurationResult withSubject_types_supported(String... subject_types_supported) {
if (getSubject_types_supported() == null) setSubject_types_supported(new java.util.ArrayList(subject_types_supported.length));
for (String value : subject_types_supported) {
getSubject_types_supported().add(value);
}
return this;
}
/**
* The subject types supported returned by the server response to get the
* Open ID configuration information.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param subject_types_supported The subject types supported returned by the server response to get the
* Open ID configuration information.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public GetOpenIdConfigurationResult withSubject_types_supported(java.util.Collection subject_types_supported) {
if (subject_types_supported == null) {
this.subject_types_supported = null;
} else {
com.amazonaws.internal.ListWithAutoConstructFlag subject_types_supportedCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(subject_types_supported.size());
subject_types_supportedCopy.addAll(subject_types_supported);
this.subject_types_supported = subject_types_supportedCopy;
}
return this;
}
/**
* The response types supported returned by the server response to get
* the Open ID configuration information.
*
* @return The response types supported returned by the server response to get
* the Open ID configuration information.
*/
public java.util.List getResponse_types_supported() {
if (response_types_supported == null) {
response_types_supported = new com.amazonaws.internal.ListWithAutoConstructFlag();
response_types_supported.setAutoConstruct(true);
}
return response_types_supported;
}
/**
* The response types supported returned by the server response to get
* the Open ID configuration information.
*
* @param response_types_supported The response types supported returned by the server response to get
* the Open ID configuration information.
*/
public void setResponse_types_supported(java.util.Collection response_types_supported) {
if (response_types_supported == null) {
this.response_types_supported = null;
return;
}
com.amazonaws.internal.ListWithAutoConstructFlag response_types_supportedCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(response_types_supported.size());
response_types_supportedCopy.addAll(response_types_supported);
this.response_types_supported = response_types_supportedCopy;
}
/**
* The response types supported returned by the server response to get
* the Open ID configuration information.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param response_types_supported The response types supported returned by the server response to get
* the Open ID configuration information.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public GetOpenIdConfigurationResult withResponse_types_supported(String... response_types_supported) {
if (getResponse_types_supported() == null) setResponse_types_supported(new java.util.ArrayList(response_types_supported.length));
for (String value : response_types_supported) {
getResponse_types_supported().add(value);
}
return this;
}
/**
* The response types supported returned by the server response to get
* the Open ID configuration information.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param response_types_supported The response types supported returned by the server response to get
* the Open ID configuration information.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public GetOpenIdConfigurationResult withResponse_types_supported(java.util.Collection response_types_supported) {
if (response_types_supported == null) {
this.response_types_supported = null;
} else {
com.amazonaws.internal.ListWithAutoConstructFlag response_types_supportedCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(response_types_supported.size());
response_types_supportedCopy.addAll(response_types_supported);
this.response_types_supported = response_types_supportedCopy;
}
return this;
}
/**
* The token-signing algorithm values supported returned by the server
* response to get the Open ID configuration information.
*
* @return The token-signing algorithm values supported returned by the server
* response to get the Open ID configuration information.
*/
public java.util.List getId_token_signing_alg_values_supported() {
if (id_token_signing_alg_values_supported == null) {
id_token_signing_alg_values_supported = new com.amazonaws.internal.ListWithAutoConstructFlag();
id_token_signing_alg_values_supported.setAutoConstruct(true);
}
return id_token_signing_alg_values_supported;
}
/**
* The token-signing algorithm values supported returned by the server
* response to get the Open ID configuration information.
*
* @param id_token_signing_alg_values_supported The token-signing algorithm values supported returned by the server
* response to get the Open ID configuration information.
*/
public void setId_token_signing_alg_values_supported(java.util.Collection id_token_signing_alg_values_supported) {
if (id_token_signing_alg_values_supported == null) {
this.id_token_signing_alg_values_supported = null;
return;
}
com.amazonaws.internal.ListWithAutoConstructFlag id_token_signing_alg_values_supportedCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(id_token_signing_alg_values_supported.size());
id_token_signing_alg_values_supportedCopy.addAll(id_token_signing_alg_values_supported);
this.id_token_signing_alg_values_supported = id_token_signing_alg_values_supportedCopy;
}
/**
* The token-signing algorithm values supported returned by the server
* response to get the Open ID configuration information.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param id_token_signing_alg_values_supported The token-signing algorithm values supported returned by the server
* response to get the Open ID configuration information.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public GetOpenIdConfigurationResult withId_token_signing_alg_values_supported(String... id_token_signing_alg_values_supported) {
if (getId_token_signing_alg_values_supported() == null) setId_token_signing_alg_values_supported(new java.util.ArrayList(id_token_signing_alg_values_supported.length));
for (String value : id_token_signing_alg_values_supported) {
getId_token_signing_alg_values_supported().add(value);
}
return this;
}
/**
* The token-signing algorithm values supported returned by the server
* response to get the Open ID configuration information.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param id_token_signing_alg_values_supported The token-signing algorithm values supported returned by the server
* response to get the Open ID configuration information.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public GetOpenIdConfigurationResult withId_token_signing_alg_values_supported(java.util.Collection id_token_signing_alg_values_supported) {
if (id_token_signing_alg_values_supported == null) {
this.id_token_signing_alg_values_supported = null;
} else {
com.amazonaws.internal.ListWithAutoConstructFlag id_token_signing_alg_values_supportedCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(id_token_signing_alg_values_supported.size());
id_token_signing_alg_values_supportedCopy.addAll(id_token_signing_alg_values_supported);
this.id_token_signing_alg_values_supported = id_token_signing_alg_values_supportedCopy;
}
return this;
}
/**
* Returns a string representation of this object; useful for testing and
* debugging.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getIssuer() != null) sb.append("Issuer: " + getIssuer() + ",");
if (getJwks_uri() != null) sb.append("Jwks_uri: " + getJwks_uri() + ",");
if (getAuthorization_endpoint() != null) sb.append("Authorization_endpoint: " + getAuthorization_endpoint() + ",");
if (getSubject_types_supported() != null) sb.append("Subject_types_supported: " + getSubject_types_supported() + ",");
if (getResponse_types_supported() != null) sb.append("Response_types_supported: " + getResponse_types_supported() + ",");
if (getId_token_signing_alg_values_supported() != null) sb.append("Id_token_signing_alg_values_supported: " + getId_token_signing_alg_values_supported() );
sb.append("}");
return sb.toString();
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getIssuer() == null) ? 0 : getIssuer().hashCode());
hashCode = prime * hashCode + ((getJwks_uri() == null) ? 0 : getJwks_uri().hashCode());
hashCode = prime * hashCode + ((getAuthorization_endpoint() == null) ? 0 : getAuthorization_endpoint().hashCode());
hashCode = prime * hashCode + ((getSubject_types_supported() == null) ? 0 : getSubject_types_supported().hashCode());
hashCode = prime * hashCode + ((getResponse_types_supported() == null) ? 0 : getResponse_types_supported().hashCode());
hashCode = prime * hashCode + ((getId_token_signing_alg_values_supported() == null) ? 0 : getId_token_signing_alg_values_supported().hashCode());
return hashCode;
}
@Override
public boolean equals(Object obj) {
if (this == obj) return true;
if (obj == null) return false;
if (obj instanceof GetOpenIdConfigurationResult == false) return false;
GetOpenIdConfigurationResult other = (GetOpenIdConfigurationResult)obj;
if (other.getIssuer() == null ^ this.getIssuer() == null) return false;
if (other.getIssuer() != null && other.getIssuer().equals(this.getIssuer()) == false) return false;
if (other.getJwks_uri() == null ^ this.getJwks_uri() == null) return false;
if (other.getJwks_uri() != null && other.getJwks_uri().equals(this.getJwks_uri()) == false) return false;
if (other.getAuthorization_endpoint() == null ^ this.getAuthorization_endpoint() == null) return false;
if (other.getAuthorization_endpoint() != null && other.getAuthorization_endpoint().equals(this.getAuthorization_endpoint()) == false) return false;
if (other.getSubject_types_supported() == null ^ this.getSubject_types_supported() == null) return false;
if (other.getSubject_types_supported() != null && other.getSubject_types_supported().equals(this.getSubject_types_supported()) == false) return false;
if (other.getResponse_types_supported() == null ^ this.getResponse_types_supported() == null) return false;
if (other.getResponse_types_supported() != null && other.getResponse_types_supported().equals(this.getResponse_types_supported()) == false) return false;
if (other.getId_token_signing_alg_values_supported() == null ^ this.getId_token_signing_alg_values_supported() == null) return false;
if (other.getId_token_signing_alg_values_supported() != null && other.getId_token_signing_alg_values_supported().equals(this.getId_token_signing_alg_values_supported()) == false) return false;
return true;
}
}