Class SAML2Profile

    • Constructor Detail

      • SAML2Profile

        public SAML2Profile()
      • SAML2Profile

        public SAML2Profile​(boolean canMergeAttributes)
        Create a profile with possibility to merge attributes with the same name and collection-type values. In SAML2 it's very important to get full collection of roles which are received in separate single-element collections.

        In order to use it you may initialize the client in the following way:

         SAML2Client client = new SAML2Client();
         SAML2ClientConfiguration config = new SAML2ClientConfiguration();
         SAML2Authenticator authenticator = new SAML2Authenticator(config.getAttributeAsId());
         boolean canMergeAttributes = true;
         authenticator.setProfileDefinition(new CommonProfileDefinition<>(x → new SAML2Profile(canMergeAttributes)));
         client.setAuthenticator(authenticator);
         
        Parameters:
        canMergeAttributes - if true - merge attributes with the same name and collection-type values, if false - overwrite them.
        Since:
        3.1.0
    • Method Detail

      • getNotBefore

        public org.joda.time.DateTime getNotBefore()
      • getNotOnOrAfter

        public org.joda.time.DateTime getNotOnOrAfter()
      • getSessionIndex

        public String getSessionIndex()
      • getIssuerEntityID

        public String getIssuerEntityID()
      • getAuthnContexts

        public List<String> getAuthnContexts()
      • getSamlNameIdFormat

        public String getSamlNameIdFormat()
      • getSamlNameIdNameQualifier

        public String getSamlNameIdNameQualifier()
      • getSamlNameIdSpNameQualifier

        public String getSamlNameIdSpNameQualifier()
      • getSamlNameIdSpProviderId

        public String getSamlNameIdSpProviderId()