Class SubjectPolicyContextHandler

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

    public class SubjectPolicyContextHandler
    extends Object
    implements javax.security.jacc.PolicyContextHandler
    A PolicyContextHandler to return a Subject from the current SecurityIdentity.
    Author:
    Darran Lofthouse
    • Constructor Detail

      • SubjectPolicyContextHandler

        public SubjectPolicyContextHandler()
    • Method Detail

      • 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
      • getKeys

        public String[] getKeys()
                         throws javax.security.jacc.PolicyContextException
        Specified by:
        getKeys in interface javax.security.jacc.PolicyContextHandler
        Throws:
        javax.security.jacc.PolicyContextException
      • 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