public abstract class AbstractCredentials extends java.lang.Object implements Credentials
Constructor and Description |
---|
AbstractCredentials(@NotNull java.lang.String userId) |
Modifier and Type | Method and Description |
---|---|
@Nullable java.lang.Object |
getAttribute(@NotNull java.lang.String name)
Returns the value of the named attribute as an
Object , or
null if no attribute of the given name exists. |
@NotNull java.util.Map<java.lang.String,java.lang.Object> |
getAttributes() |
@NotNull java.lang.String |
getUserId()
Returns the userId.
|
void |
removeAttribute(@NotNull java.lang.String name)
Removes an attribute from this credentials instance.
|
void |
setAttribute(@NotNull java.lang.String name,
@Nullable java.lang.Object value)
Stores an attribute in this credentials instance.
|
void |
setAttributes(@NotNull java.util.Map<java.lang.String,java.lang.Object> attributes)
Stores the attributes in this credentials instance.
|
public AbstractCredentials(@NotNull @NotNull java.lang.String userId)
@NotNull public @NotNull java.lang.String getUserId()
public void setAttribute(@NotNull @NotNull java.lang.String name, @Nullable @Nullable java.lang.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 java.lang.Object getAttribute(@NotNull @NotNull java.lang.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 java.lang.String name)
name
- a String
specifying the name of the attribute to
remove@NotNull public @NotNull java.util.Map<java.lang.String,java.lang.Object> getAttributes()
public void setAttributes(@NotNull @NotNull java.util.Map<java.lang.String,java.lang.Object> attributes)
attributes
- The attributes to be storedCopyright © 2010 - 2020 Adobe. All Rights Reserved