com.nimbusds.openid.connect.sdk.claims.ACR Maven / Gradle / Ivy
package com.nimbusds.openid.connect.sdk.claims;
import net.jcip.annotations.Immutable;
import com.nimbusds.oauth2.sdk.id.Identifier;
/**
* Authentication Context Class Reference ({@code acr}). It identifies the
* authentication context, i.e. the information that the relying party may
* require before it makes an entitlements decision with respect to an
* authentication response. Such context may include, but is not limited to,
* the actual authentication method used or level of assurance such as
* ITU-T X.1254 | ISO/IEC 29115 entity authentication assurance level.
*
* The ACR is represented by a string or an URI string.
*
*
Related specifications:
*
*
* - OpenID Connect Core 1.0, section 2.
*
- RFC 6711
*
- See ISO/IEC DIS 29115
*
*/
@Immutable
public final class ACR extends Identifier {
/**
* Creates a new Authentication Context Class Reference (ACR) with the
* specified value.
*
* @param value The ACR value. Must not be {@code null}.
*/
public ACR(final String value) {
super(value);
}
@Override
public boolean equals(final Object object) {
return object instanceof ACR &&
this.toString().equals(object.toString());
}
}