Class JaasAccount

    • Constructor Detail

      • JaasAccount

        public JaasAccount​(String realm,
                           Subject subject)
    • Method Detail

      • isValid

        public boolean isValid()
        Specified by:
        isValid in interface Account
      • isSynthetic

        public boolean isSynthetic()
        Specified by:
        isSynthetic in interface Account
      • getAttributes

        public IReadProperties getAttributes()
        Description copied from interface: Account
        Gets all attributes of the user account. If attributes are not supported return null;
        Specified by:
        getAttributes in interface Account
        Returns:
        all attributes in read only properties list or null if properties are not supported.
      • putAttributes

        public void putAttributes​(IReadProperties properties)
                           throws de.mhus.lib.errors.NotSupportedException
        Description copied from interface: Account
        Overwrites the given attributes, leaves all other properties untouched. Use NullValue to remove a attribute from list.
        Specified by:
        putAttributes in interface Account
        Throws:
        de.mhus.lib.errors.NotSupportedException - Thrown if attributes are not supported
      • getGroups

        public String[] getGroups()
                           throws de.mhus.lib.errors.NotSupportedException
        Description copied from interface: Account
        Return the set of assigned groups
        Specified by:
        getGroups in interface Account
        Returns:
        List of groups
        Throws:
        de.mhus.lib.errors.NotSupportedException
      • reloadAccount

        public boolean reloadAccount()
        Description copied from interface: Account
        Reload the account data
        Specified by:
        reloadAccount in interface Account
        Returns:
        true if the reload was possible
      • getCreationDate

        public Date getCreationDate()
        Description copied from interface: Account
        Return the user creation date or null if not supported.
        Specified by:
        getCreationDate in interface Account
        Returns:
        Creation date
      • getModifyDate

        public Date getModifyDate()
        Description copied from interface: Account
        Return the user modify date or null if not supported.
        Specified by:
        getModifyDate in interface Account
        Returns:
        Modify date
      • getUUID

        public UUID getUUID()
        Description copied from interface: Account
        Return the users UUID or null if not supported.
        Specified by:
        getUUID in interface Account
        Returns:
        Unique id of the user
      • isActive

        public boolean isActive()
        Description copied from interface: Account
        Return true if the user is active and the user can log in.
        Specified by:
        isActive in interface Account
        Returns:
        True if the user can log in.