001package com.nimbusds.openid.connect.sdk.claims; 002 003 004import net.jcip.annotations.Immutable; 005 006import com.nimbusds.oauth2.sdk.id.Identifier; 007 008 009/** 010 * Authentication Method Reference ({@code amr}). It identifies the method 011 * used in authentication. 012 * 013 * <p>The AMR is represented by a string or an URI string. 014 * 015 * <p>Related specifications: 016 * 017 * <ul> 018 * <li>OpenID Connect Core 1.0, section 2. 019 * </ul> 020 */ 021@Immutable 022public final class AMR extends Identifier { 023 024 025 /** 026 * Creates a new Authentication Method Reference (AMR) with the 027 * specified value. 028 * 029 * @param value The AMR value. Must not be {@code null}. 030 */ 031 public AMR(final String value) { 032 033 super(value); 034 } 035 036 037 @Override 038 public boolean equals(final Object object) { 039 040 return object instanceof AMR && 041 this.toString().equals(object.toString()); 042 } 043}