Interface Credentialed

  • Method Summary

    Modifier and Type
    Method
    Description
    static Set<String>
    combineCredentials(Collection<?> possibleCredentialeds)
    Utility method used to combine the names of credentials used by any elements of the specified collection into a single set.
    Return the names of the credentials to be used for this Credentialed entity.
    static Set<String>
    tryGetCredentials(Object possibleCredentialed)
    Utility method used to get credentials from an object if it is Credentialed
  • Method Details

    • tryGetCredentials

      static Set<String> tryGetCredentials(Object possibleCredentialed)
      Utility method used to get credentials from an object if it is Credentialed
      Parameters:
      possibleCredentialed - an object that may implement Credentialed
      Returns:
      a set of credential names from the specified object, if it implements Credentialed; otherwise, emptySet
    • combineCredentials

      static Set<String> combineCredentials(Collection<?> possibleCredentialeds)
      Utility method used to combine the names of credentials used by any elements of the specified collection into a single set.
      Parameters:
      possibleCredentialeds - a collection of objects that may implement Credentialed
      Returns:
      a set of all credential names combined from the specified collection
    • getCredentials

      Set<String> getCredentials()
      Return the names of the credentials to be used for this Credentialed entity.
      Returns:
      the names of the credentials to be used