public class ApiKey extends Object
User
. An API can be used to represent the
user when logging instead of using email and password.
These keys are created or fetched through ApiKeyAuth.create(String)
or the various
fetch
-methods.
Note that a keys value
is only available when the key is created, after that it is not
visible. So anyone creating an API key is responsible for storing it safely after that.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
ObjectId |
getId()
Returns the unique identifier for this key.
|
String |
getName()
Returns the name of this key.
|
String |
getValue()
Returns this keys value.
|
int |
hashCode() |
boolean |
isEnabled()
Returns whether or not this key is currently enabled.
|
String |
toString() |
public ObjectId getId()
public String getValue()
public String getName()
public boolean isEnabled()