public abstract class AbstractSamlObjectBuilder
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected org.apereo.cas.support.saml.OpenSamlConfigBean |
configBean
The Config bean.
|
protected static java.lang.String |
DEFAULT_ELEMENT_LOCAL_NAME_FIELD
The constant DEFAULT_ELEMENT_LOCAL_NAME_FIELD.
|
protected static java.lang.String |
DEFAULT_ELEMENT_NAME_FIELD
The constant DEFAULT_ELEMENT_NAME_FIELD.
|
| Constructor and Description |
|---|
AbstractSamlObjectBuilder() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAttributeValuesToSamlAttribute(java.lang.String attributeName,
java.lang.Object attributeValue,
java.util.List<org.opensaml.core.xml.XMLObject> attributeList,
javax.xml.namespace.QName defaultElementName)
Add attribute values to saml attribute.
|
static org.jdom.Document |
constructDocumentFromXml(java.lang.String xmlString)
Construct document from xml string.
|
java.lang.String |
generateSecureRandomId()
Generate a secure random id.
|
org.apereo.cas.support.saml.OpenSamlConfigBean |
getConfigBean() |
javax.xml.namespace.QName |
getSamlObjectQName(java.lang.Class objectType)
Gets saml object QName.
|
protected org.opensaml.core.xml.XMLObject |
newAttributeValue(java.lang.Object value,
javax.xml.namespace.QName elementName)
New attribute value.
|
<T extends org.opensaml.saml.common.SAMLObject> |
newSamlObject(java.lang.Class<T> objectType)
Create a new SAML object.
|
<T extends org.opensaml.soap.common.SOAPObject> |
newSoapObject(java.lang.Class<T> objectType)
New soap object t.
|
static java.lang.String |
signSamlResponse(java.lang.String samlResponse,
java.security.PrivateKey privateKey,
java.security.PublicKey publicKey)
Sign SAML response.
|
protected static final java.lang.String DEFAULT_ELEMENT_NAME_FIELD
protected static final java.lang.String DEFAULT_ELEMENT_LOCAL_NAME_FIELD
protected org.apereo.cas.support.saml.OpenSamlConfigBean configBean
public <T extends org.opensaml.saml.common.SAMLObject> T newSamlObject(java.lang.Class<T> objectType)
T - the generic typeobjectType - the object typepublic <T extends org.opensaml.soap.common.SOAPObject> T newSoapObject(java.lang.Class<T> objectType)
T - the type parameterobjectType - the object typepublic javax.xml.namespace.QName getSamlObjectQName(java.lang.Class objectType)
objectType - the object typeprotected org.opensaml.core.xml.XMLObject newAttributeValue(java.lang.Object value,
javax.xml.namespace.QName elementName)
value - the valueelementName - the element namepublic java.lang.String generateSecureRandomId()
protected void addAttributeValuesToSamlAttribute(java.lang.String attributeName,
java.lang.Object attributeValue,
java.util.List<org.opensaml.core.xml.XMLObject> attributeList,
javax.xml.namespace.QName defaultElementName)
attributeName - the attribute nameattributeValue - the attribute valueattributeList - the attribute listdefaultElementName - the default element namepublic static java.lang.String signSamlResponse(java.lang.String samlResponse,
java.security.PrivateKey privateKey,
java.security.PublicKey publicKey)
samlResponse - the SAML responseprivateKey - the private keypublicKey - the public keypublic static org.jdom.Document constructDocumentFromXml(java.lang.String xmlString)
xmlString - the xml stringpublic org.apereo.cas.support.saml.OpenSamlConfigBean getConfigBean()