Interface Saml2AuthenticatedPrincipal

All Superinterfaces:
AuthenticatedPrincipal
All Known Implementing Classes:
DefaultSaml2AuthenticatedPrincipal

public interface Saml2AuthenticatedPrincipal extends AuthenticatedPrincipal
Saml2 representation of an AuthenticatedPrincipal.
Since:
5.2.2
  • Method Details

    • getFirstAttribute

      @Nullable default <A> A getFirstAttribute(String name)
      Get the first value of Saml2 token attribute by name
      Type Parameters:
      A - the type of the attribute
      Parameters:
      name - the name of the attribute
      Returns:
      the first attribute value or null otherwise
      Since:
      5.4
    • getAttribute

      @Nullable default <A> List<A> getAttribute(String name)
      Get the Saml2 token attribute by name
      Type Parameters:
      A - the type of the attribute
      Parameters:
      name - the name of the attribute
      Returns:
      the attribute or null otherwise
      Since:
      5.4
    • getAttributes

      default Map<String,List<Object>> getAttributes()
      Get the Saml2 token attributes
      Returns:
      the Saml2 token attributes
      Since:
      5.4
    • getRelyingPartyRegistrationId

      default String getRelyingPartyRegistrationId()
      Get the RelyingPartyRegistration identifier
      Returns:
      the RelyingPartyRegistration identifier
      Since:
      5.6
    • getSessionIndexes

      default List<String> getSessionIndexes()