Secret

com.github.cloudfiles.core.http.Secret
See theSecret companion object
class Secret(secretRaw: Array[Char])

A class representing a secret piece of data, such as a password or an OAuth client secret.

The main purpose of this class is to store the secret information in a different representation than a plain string and to provide it as a string on demand.

Value parameters

secretRaw

the secret as character array

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def secret: String

Returns the managed client secret as string. As the secret is sensitive information, it should not be kept in memory for a longer time as string. Therefore, the string is constructed on demand only. (In general, instances of this class should not be kept in memory for a longer time.)

Returns the managed client secret as string. As the secret is sensitive information, it should not be kept in memory for a longer time as string. Therefore, the string is constructed on demand only. (In general, instances of this class should not be kept in memory for a longer time.)

Attributes

Returns

the secret as a string