public class SSOAgentUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addDeflateSignatureToHTTPQueryString(StringBuilder httpQueryString,
org.opensaml.security.x509.X509Credential cred) |
static String |
createID()
Generates a unique Id for Authentication Requests
|
static void |
doBootstrap() |
static String |
marshall(org.opensaml.core.xml.XMLObject xmlObject)
Serializing a SAML2 object into a String.
|
static void |
sendPostResponse(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String htmlPayload) |
static org.opensaml.saml.saml2.core.ArtifactResolve |
setSignature(org.opensaml.saml.saml2.core.ArtifactResolve artifactResolve,
String signatureAlgorithm,
org.opensaml.security.x509.X509Credential cred)
Sign SAML2 Artifact Resolve.
|
static org.opensaml.saml.saml2.core.AuthnRequest |
setSignature(org.opensaml.saml.saml2.core.AuthnRequest authnRequest,
String signatureAlgorithm,
org.opensaml.security.x509.X509Credential cred)
Sign the SAML AuthnRequest message
|
static org.opensaml.saml.saml2.core.LogoutRequest |
setSignature(org.opensaml.saml.saml2.core.LogoutRequest logoutRequest,
String signatureAlgorithm,
org.opensaml.security.x509.X509Credential cred)
Sign the SAML AuthnRequest message
|
static <T extends org.opensaml.xmlsec.signature.SignableXMLObject> |
setSignatureValue(T xmlObject,
String signatureAlgorithm,
org.opensaml.security.x509.X509Credential cred)
Add signature to any singable XML object.
|
static org.opensaml.core.xml.XMLObject |
unmarshall(String saml2SSOString) |
public static String createID()
public static void doBootstrap()
throws SSOAgentException
SSOAgentExceptionpublic static org.opensaml.saml.saml2.core.AuthnRequest setSignature(org.opensaml.saml.saml2.core.AuthnRequest authnRequest,
String signatureAlgorithm,
org.opensaml.security.x509.X509Credential cred)
throws SSOAgentException
authnRequest - signatureAlgorithm - cred - SSOAgentExceptionpublic static org.opensaml.saml.saml2.core.LogoutRequest setSignature(org.opensaml.saml.saml2.core.LogoutRequest logoutRequest,
String signatureAlgorithm,
org.opensaml.security.x509.X509Credential cred)
throws SSOAgentException
logoutRequest - signatureAlgorithm - cred - SSOAgentExceptionpublic static org.opensaml.saml.saml2.core.ArtifactResolve setSignature(org.opensaml.saml.saml2.core.ArtifactResolve artifactResolve,
String signatureAlgorithm,
org.opensaml.security.x509.X509Credential cred)
throws SSOAgentException
artifactResolve - ArtifactResolve object to be signed.signatureAlgorithm - Signature algorithm.cred - X509 Credential.SSOAgentExceptionpublic static <T extends org.opensaml.xmlsec.signature.SignableXMLObject> T setSignatureValue(T xmlObject,
String signatureAlgorithm,
org.opensaml.security.x509.X509Credential cred)
throws SSOAgentException
T - Singable XML object with signature.xmlObject - Singable xml object.signatureAlgorithm - Signature algorithm to be used.cred - X509 Credentials.SSOAgentException - If error occurred.public static void addDeflateSignatureToHTTPQueryString(StringBuilder httpQueryString, org.opensaml.security.x509.X509Credential cred) throws SSOAgentException
SSOAgentExceptionpublic static void sendPostResponse(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String htmlPayload)
throws SSOAgentException
SSOAgentExceptionpublic static String marshall(org.opensaml.core.xml.XMLObject xmlObject) throws SSOAgentException
xmlObject - object that needs to serialized.SSOAgentExceptionpublic static org.opensaml.core.xml.XMLObject unmarshall(String saml2SSOString) throws SSOAgentException
SSOAgentExceptionCopyright © 2021 WSO2. All rights reserved.