Class Saml2AuthenticatedPrincipal
java.lang.Object
com.codename1.backend.security.saml2.Saml2AuthenticatedPrincipal
The user an identity provider vouched for in a SAML assertion: the
assertion's NameID, the attributes it stated, and the session indexes it
gave.
-
Constructor Summary
ConstructorsConstructorDescriptionSaml2AuthenticatedPrincipal(String name, String nameIdFormat, Map<String, List<String>> attributes, List<String> sessionIndexes, String relyingPartyRegistrationId) Saml2AuthenticatedPrincipal(String name, String nameIdFormat, Map<String, List<String>> attributes, List<String> sessionIndexes, String relyingPartyRegistrationId, String nameQualifier, String spNameQualifier) With the NameID'sNameQualifierandSPNameQualifier, which a logout request must repeat as the assertion gave them: ADFS refuses one that does not. -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String name) The values of the attributename; empty when there is none.Every attribute, by itsName, with its values in order.getFirstAttribute(String name) The first value of the attributename, or null.getName()The NameID.The NameID's format, or null when the assertion did not say.The NameID'sNameQualifier, or null.The NameID'sSPNameQualifier, or null.toString()Returns a string representation of the object.
-
Constructor Details
-
Saml2AuthenticatedPrincipal
-
Saml2AuthenticatedPrincipal
public Saml2AuthenticatedPrincipal(String name, String nameIdFormat, Map<String, List<String>> attributes, List<String> sessionIndexes, String relyingPartyRegistrationId, String nameQualifier, String spNameQualifier) With the NameID'sNameQualifierandSPNameQualifier, which a logout request must repeat as the assertion gave them: ADFS refuses one that does not.
-
-
Method Details
-
getNameQualifier
The NameID'sNameQualifier, or null. -
getSpNameQualifier
The NameID'sSPNameQualifier, or null. -
getName
The NameID. -
getNameIdFormat
The NameID's format, or null when the assertion did not say. -
getAttributes
-
getAttribute
-
getFirstAttribute
-
getSessionIndexes
-
getRelyingPartyRegistrationId
-
toString
Description copied from class:ObjectReturns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method. The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of: getClass().getName() + '@' + Integer.toHexString(hashCode())
-