io.fusionauth.domain.provider.BaseSAMLv2IdentityProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fusionauth-java-client Show documentation
Show all versions of fusionauth-java-client Show documentation
The Java Client library provides a native Java binding to the FusionAuth REST API.
/*
* Copyright (c) 2023, FusionAuth, All Rights Reserved
*/
package io.fusionauth.domain.provider;
import java.util.Objects;
import java.util.UUID;
/**
* @author Lyle Schemmerling
*/
public abstract class BaseSAMLv2IdentityProvider extends BaseIdentityProvider {
public String emailClaim;
/**
* The default key used for SAML Request Signature Verification if one cannot be found in the KeyInfo
XML element in the SAML response.
*/
public UUID keyId;
public String uniqueIdClaim;
public boolean useNameIdForEmail;
public String usernameClaim;
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof BaseSAMLv2IdentityProvider>)) {
return false;
}
if (!super.equals(o)) {
return false;
}
BaseSAMLv2IdentityProvider> that = (BaseSAMLv2IdentityProvider>) o;
return useNameIdForEmail == that.useNameIdForEmail
&& Objects.equals(emailClaim, that.emailClaim)
&& Objects.equals(keyId, that.keyId)
&& Objects.equals(uniqueIdClaim, that.uniqueIdClaim)
&& Objects.equals(usernameClaim, that.usernameClaim);
}
@Override
public int hashCode() {
return Objects.hash(super.hashCode(), emailClaim, keyId, uniqueIdClaim, useNameIdForEmail, usernameClaim);
}
}