All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.edu.icm.unity.oauth.as.token.introspection.SignedJWTWithIssuer Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2021 Bixbit - Krzysztof Benedyczak. All rights reserved.
 * See LICENCE.txt file for licensing information.
 */

package pl.edu.icm.unity.oauth.as.token.introspection;

import java.text.ParseException;
import java.util.Objects;

import com.nimbusds.jwt.SignedJWT;

public class SignedJWTWithIssuer
{
	public final SignedJWT signedJWT;
	public final String issuer;
	
	public SignedJWTWithIssuer(SignedJWT signedJWT) throws ParseException
	{
		this.signedJWT = signedJWT;
		this.issuer = signedJWT.getJWTClaimsSet().getIssuer();
	}

	@Override
	public int hashCode()
	{
		return Objects.hash(issuer, signedJWT);
	}

	@Override
	public boolean equals(Object obj)
	{
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		SignedJWTWithIssuer other = (SignedJWTWithIssuer) obj;
		return Objects.equals(issuer, other.issuer) && Objects.equals(signedJWT, other.signedJWT);
	}
	
	
	
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy