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 given
MessageContext.- Since:
- 1.5.0
- Author:
- Michael Remond, Misagh Moayyed
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.opensaml.saml.saml2.core.AuthnRequestbuild(SAML2MessageContext context) build.protected org.opensaml.saml.saml2.core.AuthnContextClassRefbuildAuthnContextClassRef(String authnContextClassRef) buildAuthnContextClassRef.protected final org.opensaml.saml.saml2.core.AuthnRequestbuildAuthnRequest(SAML2MessageContext context, org.opensaml.saml.saml2.metadata.Endpoint assertionConsumerService, org.opensaml.saml.saml2.metadata.Endpoint ssoService) buildAuthnRequest.protected org.opensaml.saml.saml2.core.AuthnContextComparisonTypeEnumerationgetComparisonTypeEnumFromString(String comparisonType) getComparisonTypeEnumFromString.protected final org.opensaml.saml.saml2.core.IssuergetIssuer(SAML2MessageContext context, String spEntityId) getIssuer.voidsetIssueInstantSkewSeconds(int issueInstantSkewSeconds) Setter for the fieldissueInstantSkewSeconds.
-
Field Details
-
logger
protected final org.slf4j.Logger logger
-
-
Constructor Details
-
SAML2AuthnRequestBuilder
public SAML2AuthnRequestBuilder()
-
-
Method Details
-
build
build.
- Specified by:
buildin interfaceSAML2ObjectBuilder<org.opensaml.saml.saml2.core.AuthnRequest>- Parameters:
context- aSAML2MessageContextobject- Returns:
- a T object
-
buildAuthnRequest
protected final org.opensaml.saml.saml2.core.AuthnRequest buildAuthnRequest(SAML2MessageContext context, org.opensaml.saml.saml2.metadata.Endpoint assertionConsumerService, org.opensaml.saml.saml2.metadata.Endpoint ssoService) buildAuthnRequest.
- Parameters:
context- aSAML2MessageContextobjectassertionConsumerService- aAssertionConsumerServiceobjectssoService- aSingleSignOnServiceobject- Returns:
- a
AuthnRequestobject
-
buildAuthnContextClassRef
protected org.opensaml.saml.saml2.core.AuthnContextClassRef buildAuthnContextClassRef(String authnContextClassRef) buildAuthnContextClassRef.
- Parameters:
authnContextClassRef- aStringobject- Returns:
- a
AuthnContextClassRefobject
-
getIssuer
protected final org.opensaml.saml.saml2.core.Issuer getIssuer(SAML2MessageContext context, String spEntityId) getIssuer.
- Parameters:
context- aSAML2MessageContextobjectspEntityId- aStringobject- Returns:
- a
Issuerobject
-
getComparisonTypeEnumFromString
protected org.opensaml.saml.saml2.core.AuthnContextComparisonTypeEnumeration getComparisonTypeEnumFromString(String comparisonType) getComparisonTypeEnumFromString.
- Parameters:
comparisonType- aStringobject- Returns:
- a
AuthnContextComparisonTypeEnumerationobject
-
setIssueInstantSkewSeconds
public void setIssueInstantSkewSeconds(int issueInstantSkewSeconds) Setter for the field
issueInstantSkewSeconds.- Parameters:
issueInstantSkewSeconds- a int
-