Interface Credentials
- All Known Implementing Classes:
CredentialsImpl
public interface Credentials
Interface that describes the credentials for a given service
or user.
- Author:
- muzquiano
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGets the endpoint id.getProperty(String key) Gets a given propertyString[]Returns the property keysbooleanReturns whether this credential is persistent A persistent credential is written to a persistent vault.voidRemoves all propertiesvoidremoveProperty(String key) Removes a given propertyvoidsetProperty(String key, Object value) Sets a given property
-
Field Details
-
CREDENTIAL_USERNAME
- See Also:
-
CREDENTIAL_PASSWORD
- See Also:
-
-
Method Details
-
getEndpointId
String getEndpointId()Gets the endpoint id.- Returns:
- the endpoint id
-
getProperty
Gets a given property- Parameters:
key- the key- Returns:
- the property
-
setProperty
Sets a given property- Parameters:
key- the keyvalue- the value
-
removeProperty
Removes a given property- Parameters:
key- String
-
removeAllProperties
Removes all properties- Parameters:
key- String
-
getPropertyKeys
String[] getPropertyKeys()Returns the property keys- Returns:
- array of property keys
-
isPersistent
boolean isPersistent()Returns whether this credential is persistent A persistent credential is written to a persistent vault. A non-persistent credential is loaded into the vault but never stored- Returns:
- boolean
-