Class Credentials.Builder
java.lang.Object
com.northconcepts.datapipeline.security.Credentials.Builder
- Enclosing class:
Credentials
Assembles
Credentials from key-value pairs and an optional expiry; see Credentials.builder().-
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns new credentials holding copies of the values set so far.Sets a copy of the value for the given key or removes the key when the value isnull; the caller may wipe its own array afterwards.Sets the value for the given key or removes the key when the value isnull.setExpiresOn(long expiresOnMilliseconds) Sets the time in milliseconds when these credentials expire or zero (0) if no expiry is known.
-
Method Details
-
set
Sets the value for the given key or removes the key when the value isnull. -
set
Sets a copy of the value for the given key or removes the key when the value isnull; the caller may wipe its own array afterwards. -
setExpiresOn
Sets the time in milliseconds when these credentials expire or zero (0) if no expiry is known. -
build
Returns new credentials holding copies of the values set so far.
-