public abstract class AbstractCredentials extends Object implements Credentials
| Constructor and Description |
|---|
AbstractCredentials(@NotNull String userId) |
| Modifier and Type | Method and Description |
|---|---|
@Nullable Object |
getAttribute(@NotNull String name)
Returns the value of the named attribute as an
Object, or
null if no attribute of the given name exists. |
@NotNull Map<String,Object> |
getAttributes() |
@NotNull String |
getUserId()
Returns the userId.
|
void |
removeAttribute(@NotNull String name)
Removes an attribute from this credentials instance.
|
void |
setAttribute(@NotNull String name,
@Nullable Object value)
Stores an attribute in this credentials instance.
|
void |
setAttributes(@NotNull Map<String,Object> attributes)
Stores the attributes in this credentials instance.
|
public AbstractCredentials(@NotNull
@NotNull String userId)
@NotNull public @NotNull String getUserId()
public void setAttribute(@NotNull
@NotNull String name,
@Nullable
@Nullable Object value)
value is null the attribute will be removed.name - a String specifying the name of the attributevalue - the Object to be stored@Nullable public @Nullable Object getAttribute(@NotNull @NotNull String name)
Object, or
null if no attribute of the given name exists.name - a String specifying the name of the attributeObject containing the value of the attribute, or
null if the attribute does not existpublic void removeAttribute(@NotNull
@NotNull String name)
name - a String specifying the name of the attribute to
remove@NotNull public @NotNull Map<String,Object> getAttributes()
Copyright © 2010 - 2020 Adobe. All Rights Reserved