public interface SAMLUtils
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
VERSION |
| Modifier and Type | Method and Description |
|---|---|
org.opensaml.saml2.core.AuthnRequest |
createAuthenticationRequest(ClipboardPage samlSSOConfigPage)
Generates the SAML Authentication Request from the given input ClipboardPage of "Data-Admin-Security-SSO-SAML"
The input ClipboardPage should contain values for the below properties :
pyIssuer - Issuer or entity ID
pyIDPSSOServiceLocation - IDP's Single Sign On Service endpoint
pyProtocolBinding - IDP's Response binding protocol
pyAssertionConsumerServiceURL - Assertion Consumer Service URL
pyIsSigningDisabled, pyKeystore, pySignatureUser, pySignaturePassword - For signing information
|
org.opensaml.saml2.core.LogoutRequest |
createLogoutRequest(ClipboardPage samlSSOConfigPage)
Generates the SAML Logout Request from the given input ClipboardPage of "Data-Admin-Security-SSO-SAML"
|
org.opensaml.saml2.core.LogoutResponse |
createLogoutResponse(ClipboardPage samlSSOConfigPage,
java.lang.String logoutRequestString)
Generates the SAML Logout Response from the given input ClipboardPage of "Data-Admin-Security-SSO-SAML"
|
java.lang.String |
createSPmetadataServiceURL(ClipboardPage authServicePage)
gets the sp meta data url
|
java.lang.String |
generateArtifactId(org.opensaml.common.SAMLObject samlObject,
ClipboardPage samlSSOConfigPage)
Method which generates the ArtifactId for the given SAMLObject
|
java.lang.String |
generateArtifactResolveRequest(java.lang.String artifactIdString,
ClipboardPage samlSSOConfigPage)
Generates the ArtifactResolveRequest based on the artifactString and
the details available on clipboard page
|
java.lang.String |
generateRedirectURL(java.lang.String endpoint,
org.opensaml.common.SAMLObject samlObject,
ClipboardPage samlSSOConfigPage,
java.lang.String relayState)
Method which generates the Single logout redirect URL for response purpose
|
net.sf.ehcache.Ehcache |
getCache()
gets the cache implementation
|
java.lang.String |
getInResponseToIDFromLogoutResponse(java.lang.String logoutResponse)
To get the InResponseTo Id value from the
|
java.lang.String |
getSAMLObjectASString(org.opensaml.common.SAMLObject samlobject)
Method which generates the string equivalent of the saml object
|
java.lang.String |
getSessionIdxFromLogoutRequest(java.lang.String logoutRequest)
To get the Session Id value from the
|
java.lang.String |
processArtifactResolveRequest(java.lang.String artifactResolveReqString)
Processes the ArtifactResolveRequest and returns ArtifactResponse
uses the details available on clipboard page to process
|
java.lang.String |
processArtifactResolveResponse(java.lang.String artifactRespString,
ClipboardPage samlSSOConfigPage)
Processes the response which comes in the form of a Artifact id and uses the
details available on clipboard page to generate the SAML response
|
java.util.Map<java.lang.String,java.lang.Object> |
processAuthenticationResponse(java.lang.String responseMessage,
ClipboardPage samlSSOConfigPage)
Process the SAML Authentication Response - Performs SAML Protocol validation,
SAML Web SSO profile validation and prepares map of attribute values in received assertion
|
java.lang.String |
processLogoutRequest(java.lang.String logoutRequest,
ClipboardPage samlSSOConfigPage)
Method to process the logout response and finds whether the response is valid or not
|
java.lang.String |
processLogoutResponse(java.lang.String logoutResponse,
ClipboardPage samlSSOConfigPage)
Method to process the logout response and finds whether the response is valid or not
|
org.opensaml.saml2.core.AuthnRequest createAuthenticationRequest(ClipboardPage samlSSOConfigPage)
samlSSOConfigPage - a ClipboardPage of "Data-Admin-Security-SSO-SAML" class typeorg.opensaml.saml2.core.LogoutRequest createLogoutRequest(ClipboardPage samlSSOConfigPage)
samlSSOConfigPage - a ClipboardPage of "Data-Admin-Security-SSO-SAML" class typeorg.opensaml.saml2.core.LogoutResponse createLogoutResponse(ClipboardPage samlSSOConfigPage, java.lang.String logoutRequestString)
samlSSOConfigPage - a ClipboardPage of "Data-Admin-Security-SSO-SAML" class typelogoutRequestString - java.lang.String generateRedirectURL(java.lang.String endpoint,
org.opensaml.common.SAMLObject samlObject,
ClipboardPage samlSSOConfigPage,
java.lang.String relayState)
endpoint - samlObject - samlSSOConfigPage - a ClipboardPage of "Data-Admin-Security-SSO-SAML" class typerelayState - java.lang.String getSAMLObjectASString(org.opensaml.common.SAMLObject samlobject)
samlobject - java.util.Map<java.lang.String,java.lang.Object> processAuthenticationResponse(java.lang.String responseMessage,
ClipboardPage samlSSOConfigPage)
responseMessage - Base64 + URL Encoded SAMLResponsesamlSSOConfigPage - a ClipboardPage of "Data-Admin-Security-SSO-SAML" class typejava.lang.String processLogoutResponse(java.lang.String logoutResponse,
ClipboardPage samlSSOConfigPage)
logoutResponse - Base64 Encoded SAMLResponsesamlSSOConfigPage - the SAMLConfiguration Pagejava.lang.String processLogoutRequest(java.lang.String logoutRequest,
ClipboardPage samlSSOConfigPage)
logoutRequest - Base64 EncodedsamlSSOConfigPage - the SAMLConfiguration Pagejava.lang.String getSessionIdxFromLogoutRequest(java.lang.String logoutRequest)
logoutRequest - string valuejava.lang.String getInResponseToIDFromLogoutResponse(java.lang.String logoutResponse)
logoutResponse - string valuenet.sf.ehcache.Ehcache getCache()
java.lang.String generateArtifactResolveRequest(java.lang.String artifactIdString,
ClipboardPage samlSSOConfigPage)
artifactIdString - samlSSOConfigPage - java.lang.String processArtifactResolveResponse(java.lang.String artifactRespString,
ClipboardPage samlSSOConfigPage)
artifactRespString - samlSSOConfigPage - java.lang.String generateArtifactId(org.opensaml.common.SAMLObject samlObject,
ClipboardPage samlSSOConfigPage)
samlObject - SAMLObject for which artifactId is to be generatedsamlSSOConfigPage - a ClipboardPage of "Data-Admin-Security-SSO-SAML" class typejava.lang.String processArtifactResolveRequest(java.lang.String artifactResolveReqString)
artifactResolveReqString - java.lang.String createSPmetadataServiceURL(ClipboardPage authServicePage)
authServicePage - Copyright © 2014 Pegasystems Inc. All Rights Reserved.