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
|
void |
deleteSAMLSessionInfoRecord()
Delete current SAML session info record from DB
|
void |
deleteSSOInstances(java.lang.String className,
java.util.Map<java.lang.String,java.lang.String> propMap)
Delete the sso data instances for a given prop map
|
java.lang.String |
generateArtifactId(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
|
java.util.List<java.lang.String> |
getAuthPoliciesList(java.lang.String aAuthServiceType) |
java.lang.String |
getInResponseToFromSamlResponse(java.lang.String samlResponse,
ClipboardPage samlSSOConfigPage)
Gets InResponseTo id from saml response
|
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 |
getSecureRandomID()
generate secure random id
|
java.lang.String |
getSessionIdxFromLogoutRequest(java.lang.String logoutRequest)
To get the Session Id value from the
|
ClipboardPage |
getSSODataInstance(java.lang.String className,
java.util.Map<java.lang.String,java.lang.String> propMap,
java.util.Set<java.lang.String> propertyNames)
Get the sso data instance for a given prop map
|
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
|
void |
processSSOResponse(PublicAPI tools,
ClipboardPage myServicePage)
Process the SAML Authentication Response - Performs SAML Protocol
validation and SAML Web SSO profile validation
|
void |
purgeSAMLartifacts(java.lang.String className)
Purges orphaned records of dedicated tables of PRPC SAML classes Invoked
by agent pyCleanupWebSSO
|
boolean |
validateMapping(ClipboardPage samlPage,
PublicAPI aTools,
java.lang.String samlPageName) |
void processSSOResponse(PublicAPI tools, ClipboardPage myServicePage)
tools - myServicePage - 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 valuejava.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(ClipboardPage samlSSOConfigPage)
samlSSOConfigPage - 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 - java.lang.String getInResponseToFromSamlResponse(java.lang.String samlResponse,
ClipboardPage samlSSOConfigPage)
samlResponse - responsesamlSSOConfigPage - void purgeSAMLartifacts(java.lang.String className)
className - java.lang.String getSecureRandomID()
throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmExceptionClipboardPage getSSODataInstance(java.lang.String className, java.util.Map<java.lang.String,java.lang.String> propMap, java.util.Set<java.lang.String> propertyNames) throws DatabaseException
className - : classname for which records to be retrievedpropMap - : keys for classpropertyNames - : names of the columns/properties that are to be retrieved
from DBDatabaseExceptionvoid deleteSSOInstances(java.lang.String className,
java.util.Map<java.lang.String,java.lang.String> propMap)
className - : classname for which records to be deletedpropMap - : keys for classvoid deleteSAMLSessionInfoRecord()
java.util.List<java.lang.String> getAuthPoliciesList(java.lang.String aAuthServiceType)
aAuthServiceType - boolean validateMapping(ClipboardPage samlPage, PublicAPI aTools, java.lang.String samlPageName)
samlPage - SAML pageaTools - samlPageName - Copyright © 2018 Pegasystems Inc. All Rights Reserved.