001/* 002 * oauth2-oidc-sdk 003 * 004 * Copyright 2012-2016, Connect2id Ltd and contributors. 005 * 006 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use 007 * this file except in compliance with the License. You may obtain a copy of the 008 * License at 009 * 010 * http://www.apache.org/licenses/LICENSE-2.0 011 * 012 * Unless required by applicable law or agreed to in writing, software distributed 013 * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 014 * CONDITIONS OF ANY KIND, either express or implied. See the License for the 015 * specific language governing permissions and limitations under the License. 016 */ 017 018package com.nimbusds.openid.connect.sdk.claims; 019 020 021import net.jcip.annotations.Immutable; 022 023import com.nimbusds.oauth2.sdk.id.Identifier; 024 025 026/** 027 * Authentication Context Class Reference ({@code acr}). It identifies the 028 * authentication context, i.e. the information that the relying party may 029 * require before it makes an entitlements decision with respect to an 030 * authentication response. Such context may include, but is not limited to, 031 * the actual authentication method used or level of assurance such as 032 * ITU-T X.1254 | ISO/IEC 29115 entity authentication assurance level. 033 * 034 * <p>The ACR is represented by a string or an URI string. 035 * 036 * <p>Related specifications: 037 * 038 * <ul> 039 * <li>OpenID Connect Core 1.0, section 2. 040 * <li>RFC 6711 041 * <li>See ISO/IEC DIS 29115 042 * </ul> 043 */ 044@Immutable 045public final class ACR extends Identifier { 046 047 048 /** 049 * Creates a new Authentication Context Class Reference (ACR) with the 050 * specified value. 051 * 052 * @param value The ACR value. Must not be {@code null}. 053 */ 054 public ACR(final String value) { 055 056 super(value); 057 } 058 059 060 @Override 061 public boolean equals(final Object object) { 062 063 return object instanceof ACR && 064 this.toString().equals(object.toString()); 065 } 066}