Class IdpAdapterScriptHelper
java.lang.Object
com.sun.identity.saml2.plugins.scripted.IdpAdapterScriptHelper
Provides helper functions for IDP Adapter Script Implementations.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetEntitlements
(String applicationName, String realm, Object sessionToken, AuthnRequest authnRequest) Retrieve aList
ofScriptEntitlementInfo
s.Retrieve aList
ofScriptEntitlementInfo
s.getEntitlements
(String applicationName, String realm, Subject subject, Set<String> resources, Map<String, Set<String>> environment) Retrieve aList
ofScriptEntitlementInfo
s.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
Subject
associated with the SSO Token
-
getSubjectForToken
-
getEvaluatorForSubject
-
getEntitlements
public List<ScriptEntitlementInfo> getEntitlements(String applicationName, String realm, Object sessionToken, AuthnRequest authnRequest) throws EntitlementException Retrieve aList
ofScriptEntitlementInfo
s.- Parameters:
applicationName
- the application namerealm
- the realmsessionToken
- the session tokenauthnRequest
- theAuthnRequest
- Returns:
- the
List
ofScriptEntitlementInfo
s - 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 aList
ofScriptEntitlementInfo
s.- Parameters:
applicationName
- the application name to retrieve the entitlement information forrealm
- the realm to evaluatesubject
- theSubject
to retrieve the entitlement information forresources
- the Set of resources to evaluate- Returns:
- the
List
ofScriptEntitlementInfo
s - 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 aList
ofScriptEntitlementInfo
s.- Parameters:
applicationName
- the application name to retrieve the entitlement information forrealm
- the realm to evaluatesubject
- theSubject
to retrieve the entitlement information forresources
- the Set of resources to evaluateenvironment
- the environment parameters used in the evaluation- Returns:
- the
List
ofScriptEntitlementInfo
s - Throws:
EntitlementException
- if an error occurs when evaluating the entitlement information.
-