Class IdpAdapterScriptHelper
java.lang.Object
com.sun.identity.saml2.plugins.scripted.IdpAdapterScriptHelper
Provides helper functions for IDP Adapter Script Implementations.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiongetEntitlements(String applicationName, String realm, Object sessionToken, AuthnRequest authnRequest) Retrieve aListofScriptEntitlementInfos.Retrieve aListofScriptEntitlementInfos.getEntitlements(String applicationName, String realm, Subject subject, Set<String> resources, Map<String, Set<String>> environment) Retrieve aListofScriptEntitlementInfos.getEvaluatorForSubject(String applicationName, Subject subject) getIssuerName(AuthnRequest authnRequest) Retrieve the issuer name for the AuthN request.getResourcesForToken(AuthnRequest authnRequest) Retrieve the issuer name from the AuthN request, within a Singleton Set.getSubjectForToken(SSOToken sessionToken) getSubjectForToken(Object sessionToken)  
- 
Constructor Details
- 
IdpAdapterScriptHelper
public IdpAdapterScriptHelper() 
 - 
 - 
Method Details
- 
getIssuerName
Retrieve the issuer name for the AuthN request.- Parameters:
 authnRequest- the AuthN request- Returns:
 - the issuer name
 
 - 
getResourcesForToken
Retrieve the issuer name from the AuthN request, within a Singleton Set.- Parameters:
 authnRequest- theAuthnRequest- Returns:
 - the resources for the AuthN token
 
 - 
getSubjectForToken
- Parameters:
 sessionToken- the SSO Token of type Object- Returns:
 - the 
Subjectassociated with the SSO Token 
 - 
getSubjectForToken
 - 
getEvaluatorForSubject
 - 
getEntitlements
public List<ScriptEntitlementInfo> getEntitlements(String applicationName, String realm, Object sessionToken, AuthnRequest authnRequest) throws EntitlementException Retrieve aListofScriptEntitlementInfos.- Parameters:
 applicationName- the application namerealm- the realmsessionToken- the session tokenauthnRequest- theAuthnRequest- Returns:
 - the 
ListofScriptEntitlementInfos - Throws:
 EntitlementException- if an error occurs when evaluating the entitlement information.
 - 
getEntitlements
public 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 forrealm- the realm to evaluatesubject- theSubjectto retrieve the entitlement information forresources- the Set of resources to evaluate- Returns:
 - the 
ListofScriptEntitlementInfos - Throws:
 EntitlementException- if an error occurs when evaluating the entitlement information.
 - 
getEntitlements
public List<ScriptEntitlementInfo> getEntitlements(String applicationName, String realm, Subject subject, Set<String> resources, Map<String, Set<String>> environment) throws EntitlementExceptionRetrieve aListofScriptEntitlementInfos.- Parameters:
 applicationName- the application name to retrieve the entitlement information forrealm- the realm to evaluatesubject- theSubjectto retrieve the entitlement information forresources- the Set of resources to evaluateenvironment- the environment parameters used in the evaluation- Returns:
 - the 
ListofScriptEntitlementInfos - Throws:
 EntitlementException- if an error occurs when evaluating the entitlement information.
 
 -