Class SAML2AuthnRequestBuilder

  • All Implemented Interfaces:
    SAML2ObjectBuilder<org.opensaml.saml.saml2.core.AuthnRequest>

    public class SAML2AuthnRequestBuilder
    extends Object
    implements SAML2ObjectBuilder<org.opensaml.saml.saml2.core.AuthnRequest>
    Build a SAML2 Authn Request from the given MessageContext.
    Since:
    1.5.0
    Author:
    Michael Remond
    • Constructor Detail

      • SAML2AuthnRequestBuilder

        public SAML2AuthnRequestBuilder​(SAML2Configuration cfg)
        Instantiates a new Saml 2 authn request builder.
        Parameters:
        cfg - Client configuration.
    • Method Detail

      • buildAuthnRequest

        protected final org.opensaml.saml.saml2.core.AuthnRequest buildAuthnRequest​(SAML2MessageContext context,
                                                                                    org.opensaml.saml.saml2.metadata.AssertionConsumerService assertionConsumerService,
                                                                                    org.opensaml.saml.saml2.metadata.SingleSignOnService ssoService)
      • buildAuthnContextClassRef

        protected org.opensaml.saml.saml2.core.AuthnContextClassRef buildAuthnContextClassRef​(String authnContextClassRef)
      • getIssuer

        protected final org.opensaml.saml.saml2.core.Issuer getIssuer​(String spEntityId)
      • getComparisonTypeEnumFromString

        protected final org.opensaml.saml.saml2.core.AuthnContextComparisonTypeEnumeration getComparisonTypeEnumFromString​(String comparisonType)
      • setIssueInstantSkewSeconds

        public void setIssueInstantSkewSeconds​(int issueInstantSkewSeconds)