java.lang.Object
org.odpi.openmetadata.adapters.connectors.secretsstore.yaml.secretsstore.SecretsCollection

public class SecretsCollection extends Object
SecretsCollection stores a collection or properties that are used to connect to a particular digital resource, or support a specific type of security service.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object objectToCompare)
    Compare the values of the supplied object with those stored in the current object.
    Map<String,org.odpi.openmetadata.frameworks.connectors.properties.users.NamedList>
    Return the named lists in this collection.
    long
    Return the length of time that secrets can be cached.
    Return the list of secrets.
    Return details of a token API associated with the secrets collection.
    Map<String,org.odpi.openmetadata.frameworks.connectors.properties.users.UserAccount>
    Return the users stored in the secrets collection.
    int
    Hash of properties
    void
    setNamedLists(Map<String,org.odpi.openmetadata.frameworks.connectors.properties.users.NamedList> namedLists)
    Set up the named lists in this collection.
    void
    setRefreshTimeInterval(long getRefreshTimeInterval)
    Set up the length of time that secrets can be cached.
    void
    Set up the in memory version of the secrets collection.
    void
    Set up the token API for this secrets collection.
    void
    setUsers(Map<String,org.odpi.openmetadata.frameworks.connectors.properties.users.UserAccount> users)
    Set up the users stored in the secrets collection.
    Standard toString method.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SecretsCollection

      public SecretsCollection()
      Default constructor
  • Method Details

    • getRefreshTimeInterval

      public long getRefreshTimeInterval()
      Return the length of time that secrets can be cached.
      Returns:
      long
    • setRefreshTimeInterval

      public void setRefreshTimeInterval(long getRefreshTimeInterval)
      Set up the length of time that secrets can be cached.
      Parameters:
      getRefreshTimeInterval - long
    • getUsers

      public Map<String,org.odpi.openmetadata.frameworks.connectors.properties.users.UserAccount> getUsers()
      Return the users stored in the secrets collection.
      Returns:
      map of userIds to user details
    • setUsers

      public void setUsers(Map<String,org.odpi.openmetadata.frameworks.connectors.properties.users.UserAccount> users)
      Set up the users stored in the secrets collection.
      Parameters:
      users - map of userIds to user details
    • getSecrets

      public Map<String,String> getSecrets()
      Return the list of secrets.
      Returns:
      map of secret values
    • setSecrets

      public void setSecrets(Map<String,String> secrets)
      Set up the in memory version of the secrets collection.
      Parameters:
      secrets - a map of secrets values
    • getTokenAPI

      public TokenAPI getTokenAPI()
      Return details of a token API associated with the secrets collection.
      Returns:
      token API definition
    • setTokenAPI

      public void setTokenAPI(TokenAPI tokenAPI)
      Set up the token API for this secrets collection.
      Parameters:
      tokenAPI - token API definition
    • getNamedLists

      public Map<String,org.odpi.openmetadata.frameworks.connectors.properties.users.NamedList> getNamedLists()
      Return the named lists in this collection. The named lists can represent organization units, security groups and roles.
      Returns:
      map of named lists
    • setNamedLists

      public void setNamedLists(Map<String,org.odpi.openmetadata.frameworks.connectors.properties.users.NamedList> namedLists)
      Set up the named lists in this collection. The named lists can represent organization units, security groups and roles.
      Parameters:
      namedLists - map of named lists
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class Object
      Returns:
      print out of variables in a JSON-style
    • equals

      public boolean equals(Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      Overrides:
      equals in class Object
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Hash of properties
      Overrides:
      hashCode in class Object
      Returns:
      int