public class Saml10ObjectBuilder extends AbstractSamlObjectBuilder
configBean, DEFAULT_ELEMENT_LOCAL_NAME_FIELD, DEFAULT_ELEMENT_NAME_FIELD| Constructor and Description |
|---|
Saml10ObjectBuilder(org.apereo.cas.support.saml.OpenSamlConfigBean configBean) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttributeValuesToSaml1Attribute(java.lang.String attributeName,
java.lang.Object attributeValue,
java.util.List<org.opensaml.core.xml.XMLObject> attributeList)
Add saml1 attribute values for attribute.
|
void |
encodeSamlResponse(javax.servlet.http.HttpServletResponse httpResponse,
javax.servlet.http.HttpServletRequest httpRequest,
org.opensaml.saml.saml1.core.Response samlMessage)
Encode response and pass it onto the outbound transport.
|
org.opensaml.saml.saml1.core.Assertion |
newAssertion(org.opensaml.saml.saml1.core.AuthenticationStatement authnStatement,
java.lang.String issuer,
java.time.ZonedDateTime issuedAt,
java.lang.String id)
Create a new SAML1 response object.
|
org.opensaml.saml.saml1.core.AttributeStatement |
newAttributeStatement(org.opensaml.saml.saml1.core.Subject subject,
java.util.Map<java.lang.String,java.lang.Object> attributes,
java.lang.String attributeNamespace)
New attribute statement.
|
org.opensaml.saml.saml1.core.AuthenticationStatement |
newAuthenticationStatement(java.time.ZonedDateTime authenticationDate,
java.util.Collection<java.lang.Object> authenticationMethod,
java.lang.String subjectId)
New authentication statement.
|
org.opensaml.saml.saml1.core.Conditions |
newConditions(java.time.ZonedDateTime issuedAt,
java.lang.String audienceUri,
long issueLength)
New conditions element.
|
org.opensaml.saml.saml1.core.Response |
newResponse(java.lang.String id,
java.time.ZonedDateTime issueInstant,
java.lang.String recipient,
org.apereo.cas.authentication.principal.WebApplicationService service)
Create a new SAML response object.
|
org.opensaml.saml.saml1.core.Status |
newStatus(javax.xml.namespace.QName codeValue)
New status status.
|
org.opensaml.saml.saml1.core.Status |
newStatus(javax.xml.namespace.QName codeValue,
java.lang.String statusMessage)
Create a new SAML status object.
|
org.opensaml.saml.saml1.core.Subject |
newSubject(java.lang.String identifier)
New subject element that uses the confirmation method
CONFIRMATION_METHOD. |
org.opensaml.saml.saml1.core.Subject |
newSubject(java.lang.String identifier,
java.lang.String confirmationMethod)
New subject element with given confirmation method.
|
addAttributeValuesToSamlAttribute, constructDocumentFromXml, generateSecureRandomId, getConfigBean, getSamlObjectQName, newAttributeValue, newSamlObject, newSoapObject, signSamlResponsepublic Saml10ObjectBuilder(org.apereo.cas.support.saml.OpenSamlConfigBean configBean)
public org.opensaml.saml.saml1.core.Response newResponse(java.lang.String id,
java.time.ZonedDateTime issueInstant,
java.lang.String recipient,
org.apereo.cas.authentication.principal.WebApplicationService service)
id - the idissueInstant - the issue instantrecipient - the recipientservice - the servicepublic org.opensaml.saml.saml1.core.Assertion newAssertion(org.opensaml.saml.saml1.core.AuthenticationStatement authnStatement,
java.lang.String issuer,
java.time.ZonedDateTime issuedAt,
java.lang.String id)
authnStatement - the authn statementissuer - the issuerissuedAt - the issued atid - the idpublic org.opensaml.saml.saml1.core.Conditions newConditions(java.time.ZonedDateTime issuedAt,
java.lang.String audienceUri,
long issueLength)
issuedAt - the issued ataudienceUri - the service idissueLength - the issue lengthpublic org.opensaml.saml.saml1.core.Status newStatus(javax.xml.namespace.QName codeValue)
codeValue - the code valuepublic org.opensaml.saml.saml1.core.Status newStatus(javax.xml.namespace.QName codeValue,
java.lang.String statusMessage)
codeValue - the code valuestatusMessage - the status messagepublic org.opensaml.saml.saml1.core.AuthenticationStatement newAuthenticationStatement(java.time.ZonedDateTime authenticationDate,
java.util.Collection<java.lang.Object> authenticationMethod,
java.lang.String subjectId)
authenticationDate - the authentication dateauthenticationMethod - the authentication methodsubjectId - the subject idpublic org.opensaml.saml.saml1.core.Subject newSubject(java.lang.String identifier)
CONFIRMATION_METHOD.identifier - the identifierpublic org.opensaml.saml.saml1.core.Subject newSubject(java.lang.String identifier,
java.lang.String confirmationMethod)
identifier - the identifierconfirmationMethod - the confirmation methodpublic void addAttributeValuesToSaml1Attribute(java.lang.String attributeName,
java.lang.Object attributeValue,
java.util.List<org.opensaml.core.xml.XMLObject> attributeList)
attributeName - the attribute nameattributeValue - the attribute valueattributeList - the attribute listpublic org.opensaml.saml.saml1.core.AttributeStatement newAttributeStatement(org.opensaml.saml.saml1.core.Subject subject,
java.util.Map<java.lang.String,java.lang.Object> attributes,
java.lang.String attributeNamespace)
subject - the subjectattributes - the attributesattributeNamespace - the attribute namespacepublic void encodeSamlResponse(javax.servlet.http.HttpServletResponse httpResponse,
javax.servlet.http.HttpServletRequest httpRequest,
org.opensaml.saml.saml1.core.Response samlMessage)
throws java.lang.Exception
CasHttpSoap11Encoder to handle encoding.httpResponse - the http responsehttpRequest - the http requestsamlMessage - the saml responsejava.lang.Exception - the exception in case encoding fails.