Package org.opensaml.saml.saml2.profile
Class SAML2ObjectSupport
java.lang.Object
org.opensaml.saml.saml2.profile.SAML2ObjectSupport
A helper class for working with SAMLObjects.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
areNameIDFormatsEquivalent
(String format1, String format2) Return true iff the two inputNameID
formats are equivalent for SAML 2.0 purposes.static boolean
areNameIDsEquivalent
(NameID name1, NameID name2) Return true iff the two inputNameID
objects are equivalent for SAML 2.0 purposes, with the assumption that the qualifier attributes must match exactly.static boolean
areNameIDsEquivalent
(NameID name1, NameID name2, String assertingParty, String relyingParty) Return true iff the two inputNameID
objects are equivalent for SAML 2.0 purposes, allowing thw qualifier attributes to assume default values if not otherwise set.
-
Constructor Details
-
SAML2ObjectSupport
private SAML2ObjectSupport()Constructor.
-
-
Method Details
-
areNameIDFormatsEquivalent
public static boolean areNameIDFormatsEquivalent(@Nullable String format1, @Nullable String format2) Return true iff the two inputNameID
formats are equivalent for SAML 2.0 purposes.- Parameters:
format1
- first format to checkformat2
- second format to check- Returns:
- true iff the two format values should be viewed as equivalent
-
areNameIDsEquivalent
Return true iff the two inputNameID
objects are equivalent for SAML 2.0 purposes, with the assumption that the qualifier attributes must match exactly.- Parameters:
name1
- first NameID to checkname2
- second NameID to check- Returns:
- true iff the two values should be viewed as equivalent
-
areNameIDsEquivalent
public static boolean areNameIDsEquivalent(@Nonnull NameID name1, @Nonnull NameID name2, @Nullable String assertingParty, @Nullable String relyingParty) Return true iff the two inputNameID
objects are equivalent for SAML 2.0 purposes, allowing thw qualifier attributes to assume default values if not otherwise set.- Parameters:
name1
- first NameID to checkname2
- second NameID to checkassertingParty
- optional name of asserting party to default in as NameQualifierrelyingParty
- optional name of relying party to default in as SPNameQualifier- Returns:
- true iff the two values should be viewed as equivalent
- Since:
- 3.4.0
-