001/* 002 * oauth2-oidc-sdk 003 * 004 * Copyright 2012-2025, 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.oauth2.sdk.ciba; 019 020import com.nimbusds.oauth2.sdk.id.Identifier; 021import net.jcip.annotations.Immutable; 022 023 024/** 025 * Login hint token. 026 * 027 * <p>Related specifications: 028 * 029 * <ul> 030 * <li>OpenID Connect CIBA Flow - Core 1.0. 031 * </ul> 032 */ 033@Immutable 034public class LoginHintToken extends Identifier { 035 036 037 /** 038 * Creates a new login hint token with the specified value. 039 * 040 * @param value The value. Must not be {@code null} or empty string. 041 */ 042 public LoginHintToken(final String value) { 043 super(value); 044 } 045 046 047 /** 048 * Creates a new login hint token with a randomly generated 256-bit 049 * (32-byte) value, Base64URL-encoded. 050 */ 051 public LoginHintToken() { 052 super(); 053 } 054 055 056 @Override 057 public boolean equals(final Object object) { 058 059 return object instanceof LoginHintToken && 060 this.toString().equals(object.toString()); 061 } 062}