Interface SecuredTokensManagement


  • public interface SecuredTokensManagement
    Secured tokens API allows for manipulating generic tokens. User with "System Manager" authorization role can manage all tokens. All other users can manage only their own token
    Author:
    P.Piernik
    • Method Detail

      • getAllTokens

        List<pl.edu.icm.unity.base.token.Token> getAllTokens​(String type)
                                                      throws EngineException
        User with "System Manager" authorization role can get all tokens. All other users can get only own tokens
        Parameters:
        type - . If null all types will be return
        Returns:
        all tokens of a given type
        Throws:
        EngineException
      • getOwnedTokens

        List<pl.edu.icm.unity.base.token.Token> getOwnedTokens​(String type,
                                                               EntityParam entity)
                                                        throws EngineException
        User with "System Manager" authorization role can get all tokens of all entities. All other users can get only own tokens.
        Parameters:
        type - . If null all types will be return
        entity -
        Returns:
        Throws:
        EngineException
      • getOwnedTokens

        List<pl.edu.icm.unity.base.token.Token> getOwnedTokens​(String type)
                                                        throws EngineException
        Returns all tokens of the logged entity
        Parameters:
        type - . If null all types will be return
        entity -
        Returns:
        Throws:
        EngineException
      • removeToken

        void removeToken​(String type,
                         String value)
                  throws EngineException
        User with "System Manager" authorization role can remove all tokens. All other users can remove only own tokens
        Parameters:
        type -
        value -
        Throws:
        AuthorizationException
        EngineException