Package org.pac4j.saml.sso.impl
Class SAML2AuthnRequestBuilder
- java.lang.Object
-
- org.pac4j.saml.sso.impl.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 givenMessageContext
.- Since:
- 1.5.0
- Author:
- Michael Remond, Misagh Moayyed
-
-
Constructor Summary
Constructors Constructor Description SAML2AuthnRequestBuilder(SAML2Configuration cfg)
Instantiates a new Saml 2 authn request builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.opensaml.saml.saml2.core.AuthnRequest
build(SAML2MessageContext context)
protected org.opensaml.saml.saml2.core.AuthnContextClassRef
buildAuthnContextClassRef(String authnContextClassRef)
protected org.opensaml.saml.saml2.core.AuthnRequest
buildAuthnRequest(SAML2MessageContext context, org.opensaml.saml.saml2.metadata.AssertionConsumerService assertionConsumerService, org.opensaml.saml.saml2.metadata.SingleSignOnService ssoService)
protected org.opensaml.saml.saml2.core.AuthnContextComparisonTypeEnumeration
getComparisonTypeEnumFromString(String comparisonType)
protected org.opensaml.saml.saml2.core.Issuer
getIssuer(String spEntityId)
void
setIssueInstantSkewSeconds(int issueInstantSkewSeconds)
-
-
-
Constructor Detail
-
SAML2AuthnRequestBuilder
public SAML2AuthnRequestBuilder(SAML2Configuration cfg)
Instantiates a new Saml 2 authn request builder.- Parameters:
cfg
- Client configuration.
-
-
Method Detail
-
build
public org.opensaml.saml.saml2.core.AuthnRequest build(SAML2MessageContext context)
- Specified by:
build
in interfaceSAML2ObjectBuilder<org.opensaml.saml.saml2.core.AuthnRequest>
-
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 org.opensaml.saml.saml2.core.AuthnContextComparisonTypeEnumeration getComparisonTypeEnumFromString(String comparisonType)
-
setIssueInstantSkewSeconds
public void setIssueInstantSkewSeconds(int issueInstantSkewSeconds)
-
-