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