Class IdpAdapterScriptHelper
- java.lang.Object
- 
- com.sun.identity.saml2.plugins.scripted.IdpAdapterScriptHelper
 
- 
 @EvolvingAll @Singleton public class IdpAdapterScriptHelper extends Object Provides helper functions for IDP Adapter Script Implementations.
- 
- 
Constructor SummaryConstructors Constructor Description IdpAdapterScriptHelper()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ScriptEntitlementInfo>getEntitlements(String applicationName, String realm, Object sessionToken, AuthnRequest authnRequest)Retrieve aListofScriptEntitlementInfos.List<ScriptEntitlementInfo>getEntitlements(String applicationName, String realm, Subject subject, Set<String> resources)Retrieve aListofScriptEntitlementInfos.List<ScriptEntitlementInfo>getEntitlements(String applicationName, String realm, Subject subject, Set<String> resources, Map<String,Set<String>> environment)Retrieve aListofScriptEntitlementInfos.EvaluatorgetEvaluatorForSubject(String applicationName, Subject subject)StringgetIssuerName(AuthnRequest authnRequest)Retrieve the issuer name for the AuthN request.Set<String>getResourcesForToken(AuthnRequest authnRequest)Retrieve the issuer name from the AuthN request, within a Singleton Set.SubjectgetSubjectForToken(SSOToken sessionToken)SubjectgetSubjectForToken(Object sessionToken)
 
- 
- 
- 
Method Detail- 
getIssuerNamepublic String getIssuerName(AuthnRequest authnRequest) Retrieve the issuer name for the AuthN request.- Parameters:
- authnRequest- the AuthN request
- Returns:
- the issuer name
 
 - 
getResourcesForTokenpublic Set<String> getResourcesForToken(AuthnRequest authnRequest) Retrieve the issuer name from the AuthN request, within a Singleton Set.- Parameters:
- authnRequest- the- AuthnRequest
- Returns:
- the resources for the AuthN token
 
 - 
getSubjectForTokenpublic Subject getSubjectForToken(Object sessionToken) - Parameters:
- sessionToken- the SSO Token of type Object
- Returns:
- the Subjectassociated with the SSO Token
 
 - 
getEvaluatorForSubjectpublic Evaluator getEvaluatorForSubject(String applicationName, Subject subject) 
 - 
getEntitlementspublic List<ScriptEntitlementInfo> getEntitlements(String applicationName, String realm, Object sessionToken, AuthnRequest authnRequest) throws EntitlementException Retrieve aListofScriptEntitlementInfos.- Parameters:
- applicationName- the application name
- realm- the realm
- sessionToken- the session token
- authnRequest- the- AuthnRequest
- Returns:
- the ListofScriptEntitlementInfos
- Throws:
- EntitlementException- if an error occurs when evaluating the entitlement information.
 
 - 
getEntitlementspublic List<ScriptEntitlementInfo> getEntitlements(String applicationName, String realm, Subject subject, Set<String> resources) throws EntitlementException Retrieve aListofScriptEntitlementInfos.- Parameters:
- applicationName- the application name to retrieve the entitlement information for
- realm- the realm to evaluate
- subject- the- Subjectto retrieve the entitlement information for
- resources- the Set of resources to evaluate
- Returns:
- the ListofScriptEntitlementInfos
- Throws:
- EntitlementException- if an error occurs when evaluating the entitlement information.
 
 - 
getEntitlementspublic List<ScriptEntitlementInfo> getEntitlements(String applicationName, String realm, Subject subject, Set<String> resources, Map<String,Set<String>> environment) throws EntitlementException Retrieve aListofScriptEntitlementInfos.- Parameters:
- applicationName- the application name to retrieve the entitlement information for
- realm- the realm to evaluate
- subject- the- Subjectto retrieve the entitlement information for
- resources- the Set of resources to evaluate
- environment- the environment parameters used in the evaluation
- Returns:
- the ListofScriptEntitlementInfos
- Throws:
- EntitlementException- if an error occurs when evaluating the entitlement information.
 
 
- 
 
-