com.nimbusds.openid.connect.sdk.claims.AMR Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of oauth2-oidc-sdk Show documentation
Show all versions of oauth2-oidc-sdk Show documentation
OAuth 2.0 SDK with OpenID Connection extensions for developing client
and server applications.
package com.nimbusds.openid.connect.sdk.claims;
import net.jcip.annotations.Immutable;
import com.nimbusds.oauth2.sdk.id.Identifier;
/**
* Authentication Method Reference ({@code amr}). It identifies the method
* used in authentication.
*
* The AMR is represented by a string or an URI string.
*
*
Related specifications:
*
*
* - OpenID Connect Core 1.0, section 2.
*
*/
@Immutable
public final class AMR extends Identifier {
/**
* Creates a new Authentication Method Reference (AMR) with the
* specified value.
*
* @param value The AMR value. Must not be {@code null}.
*/
public AMR(final String value) {
super(value);
}
@Override
public boolean equals(final Object object) {
return object instanceof AMR &&
this.toString().equals(object.toString());
}
}