Class AbstractSecurityContext

    • Field Detail

      • callerPrincipal

        protected Principal callerPrincipal
      • subject

        protected Subject subject
      • additionalPrincipal

        protected Principal additionalPrincipal
    • Constructor Detail

      • AbstractSecurityContext

        public AbstractSecurityContext()
    • Method Detail

      • getCallerPrincipal

        public abstract Principal getCallerPrincipal()
        This method should be implemented by the subclasses to return the caller principal. This information may be redundant since the same information can be inferred by inspecting the Credentials of the caller.
        Specified by:
        getCallerPrincipal in interface AppServSecurityContext
        Returns:
        The caller Principal.
      • getSubject

        public abstract Subject getSubject()
        This method should be implemented by the subclasses to return the Credentials of the caller principal.
        Specified by:
        getSubject in interface AppServSecurityContext
        Returns:
        A credentials object associated with the current client invocation.
      • getAdditionalPrincipal

        public Principal getAdditionalPrincipal()
      • setAdditionalPrincipal

        public void setAdditionalPrincipal​(Principal principal)