Class TokenRestrictionResolver


  • public class TokenRestrictionResolver
    extends Object
    Class to validate agents sending AuthN requests and the resource being accessed, and return the token restriction.
    • Constructor Detail

      • TokenRestrictionResolver

        @Inject
        public TokenRestrictionResolver​(AMIdentityRepositoryFactory identityRepositoryFactory,
                                        TokenRestrictionFactory tokenRestrictionFactory)
        Constructor of LDAPAgentValidator instances.
        Parameters:
        identityRepositoryFactory - Factory for creating AMIdentityRepository instances.
        tokenRestrictionFactory - Factory for creating TokenRestriction instances.
    • Method Detail

      • resolve

        public TokenRestriction resolve​(String providerId,
                                        String gotoUrl,
                                        SSOToken adminToken,
                                        boolean uniqueSSOTokenCookie)
                                 throws IdRepoException,
                                        SMSException,
                                        SSOException
        Returns an appropriate token restriction for the given agent.
        Parameters:
        providerId - The request's provider id attribute.
        gotoUrl - The goto url attribute.
        adminToken - The admin token.
        uniqueSSOTokenCookie - true if unique SSO token cookie is enabled; false otherwise.
        Returns:
        The TokenRestriction.
        Throws:
        IdRepoException - if the agent's attributes cannot be retrieved.
        SMSException - if a token restriction cannot be created.
        SSOException - if any of the inputs are invalid.