Class SpnegoUserIdentity

  • All Implemented Interfaces:
    UserIdentity

    @Deprecated(since="2021-05-27")
    public class SpnegoUserIdentity
    extends java.lang.Object
    implements UserIdentity
    Deprecated.
    • Constructor Detail

      • SpnegoUserIdentity

        public SpnegoUserIdentity​(javax.security.auth.Subject subject,
                                  java.security.Principal principal,
                                  UserIdentity roleDelegate)
        Deprecated.
    • Method Detail

      • getSubject

        public javax.security.auth.Subject getSubject()
        Deprecated.
        Specified by:
        getSubject in interface UserIdentity
        Returns:
        The user subject
      • getUserPrincipal

        public java.security.Principal getUserPrincipal()
        Deprecated.
        Specified by:
        getUserPrincipal in interface UserIdentity
        Returns:
        The user principal
      • isUserInRole

        public boolean isUserInRole​(java.lang.String role,
                                    UserIdentity.Scope scope)
        Deprecated.
        Description copied from interface: UserIdentity
        Check if the user is in a role. This call is used to satisfy authorization calls from container code which will be using translated role names.
        Specified by:
        isUserInRole in interface UserIdentity
        Parameters:
        role - A role name.
        scope - the scope
        Returns:
        True if the user can act in that role.
      • isEstablished

        public boolean isEstablished()
        Deprecated.