Class SecurityIdentityHandler

  • All Implemented Interfaces:
    javax.security.jacc.PolicyContextHandler

    public class SecurityIdentityHandler
    extends Object
    implements javax.security.jacc.PolicyContextHandler

    A PolicyContextHandler that obtains the SecurityIdentity from the current SecurityDomain.

    This handler should be installed wherever is necessary to perform permission checks based on the permissions associated with the SecurityIdentity instances obtained and associated with a given SecurityDomain. In this case, permission checks will be done based on the permissions managed by JACC and also on those associated with an authorized identity in Elytron.

    Author:
    Pedro Igor
    • Field Detail

      • KEY

        static final String KEY
    • Constructor Detail

      • SecurityIdentityHandler

        public SecurityIdentityHandler()
    • Method Detail

      • getContext

        public Object getContext​(String key,
                                 Object data)
                          throws javax.security.jacc.PolicyContextException
        Specified by:
        getContext in interface javax.security.jacc.PolicyContextHandler
        Throws:
        javax.security.jacc.PolicyContextException
      • getKeys

        public String[] getKeys()
                         throws javax.security.jacc.PolicyContextException
        Specified by:
        getKeys in interface javax.security.jacc.PolicyContextHandler
        Throws:
        javax.security.jacc.PolicyContextException
      • supports

        public boolean supports​(String key)
                         throws javax.security.jacc.PolicyContextException
        Specified by:
        supports in interface javax.security.jacc.PolicyContextHandler
        Throws:
        javax.security.jacc.PolicyContextException