Interface Credentials
-
- All Known Implementing Classes:
CredentialsImpl
public interface CredentialsInterface that describes the credentials for a given service or user.- Author:
- muzquiano
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCREDENTIAL_PASSWORDstatic java.lang.StringCREDENTIAL_USERNAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetEndpointId()Gets the endpoint id.java.lang.ObjectgetProperty(java.lang.String key)Gets a given propertyjava.lang.String[]getPropertyKeys()Returns the property keysbooleanisPersistent()Returns whether this credential is persistent A persistent credential is written to a persistent vault.voidremoveAllProperties(java.lang.String key)Removes all propertiesvoidremoveProperty(java.lang.String key)Removes a given propertyvoidsetProperty(java.lang.String key, java.lang.Object value)Sets a given property
-
-
-
Field Detail
-
CREDENTIAL_USERNAME
static final java.lang.String CREDENTIAL_USERNAME
- See Also:
- Constant Field Values
-
CREDENTIAL_PASSWORD
static final java.lang.String CREDENTIAL_PASSWORD
- See Also:
- Constant Field Values
-
-
Method Detail
-
getEndpointId
java.lang.String getEndpointId()
Gets the endpoint id.- Returns:
- the endpoint id
-
getProperty
java.lang.Object getProperty(java.lang.String key)
Gets a given property- Parameters:
key- the key- Returns:
- the property
-
setProperty
void setProperty(java.lang.String key, java.lang.Object value)Sets a given property- Parameters:
key- the keyvalue- the value
-
removeProperty
void removeProperty(java.lang.String key)
Removes a given property- Parameters:
key- String
-
removeAllProperties
void removeAllProperties(java.lang.String key)
Removes all properties- Parameters:
key- String
-
getPropertyKeys
java.lang.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
-
-