|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.jcr.api.AnonymousCredentials
public class AnonymousCredentials
A Credentials
implementation that can be used to represent anonymous users when ModeShape is configured to allow
anonymous users.
Note that this implementation supports attributes.
Constructor Summary | |
---|---|
AnonymousCredentials()
Create a new instance of the anonymous credentials. |
|
AnonymousCredentials(String attributeName,
Object attributeValue)
Create a new instance of the anonymous credentials, with the supplied attributes. |
|
AnonymousCredentials(String attribute1Name,
Object attribute1Value,
String attribute2Name,
Object attribute2Value)
Create a new instance of the anonymous credentials, with the supplied attributes. |
|
AnonymousCredentials(String attribute1Name,
Object attribute1Value,
String attribute2Name,
Object attribute2Value,
String attribute3Name,
Object attribute3Value)
Create a new instance of the anonymous credentials, with the supplied attributes. |
Method Summary | |
---|---|
Object |
getAttribute(String name)
Returns the value of the named attribute as an Object , or null if no attribute of the given name
exists. |
String[] |
getAttributeNames()
Returns the names of the attributes available to this credentials instance. |
Map<String,Object> |
getAttributes()
|
void |
removeAttribute(String name)
Removes an attribute from this credentials instance. |
void |
setAttribute(String name,
Object value)
Stores an attribute in this credentials instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnonymousCredentials()
public AnonymousCredentials(String attributeName, Object attributeValue)
attributeName
- the name of the attribute; may not be nullattributeValue
- the value of the attributepublic AnonymousCredentials(String attribute1Name, Object attribute1Value, String attribute2Name, Object attribute2Value)
attribute1Name
- the name of the attribute; may not be nullattribute1Value
- the value of the attributeattribute2Name
- the name of the attribute; may not be nullattribute2Value
- the value of the attributepublic AnonymousCredentials(String attribute1Name, Object attribute1Value, String attribute2Name, Object attribute2Value, String attribute3Name, Object attribute3Value)
attribute1Name
- the name of the attribute; may not be nullattribute1Value
- the value of the attributeattribute2Name
- the name of the attribute; may not be nullattribute2Value
- the value of the attributeattribute3Name
- the name of the attribute; may not be nullattribute3Value
- the value of the attributeMethod Detail |
---|
public void setAttribute(String name, Object value)
name
- a String
specifying the name of the attributevalue
- the Object
to be storedpublic Object getAttribute(String name)
Object
, or null
if no attribute of the given name
exists.
name
- a String
specifying the name of the attribute
Object
containing the value of the attribute, or null
if the attribute does not existpublic void removeAttribute(String name)
name
- a String
specifying the name of the attribute to removepublic String[] getAttributeNames()
public Map<String,Object> getAttributes()
|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |