public class CredentialManagerUser extends Object implements Serializable
The data encapsulated by a CredentialManagerUser must be serializable.
Modifier and Type | Field and Description |
---|---|
static String |
DISTINGUISHEDNAME_ATTRIBUTE
The name of the attribute which references the
Credential manager distinguished name for which this
user is associated.
|
static String |
EMAILADDRESS_ATTRIBUTE
The name of the attribute which references the
email address for which this user is associated.
|
static String |
ENABLED_ATTRIBUTE
The name of the attribute which references the
indication as to whether this user is enabled, meaning that
the user can authenticate with the Credential manager.
|
static String |
FIRSTNAME_ATTRIBUTE
The name of the attribute which references the
First (given) name for which this user is associated.
|
static String |
LANGUAGE_ATTRIBUTE
The name of the attribute which references the
preferred language for which this user is associated.
|
static String |
LASTNAME_ATTRIBUTE
The name of the attribute which references the
Last name (surname) for which this user is associated.
|
protected Hashtable |
m_Attributes
Table of the attributes known for this user.
|
protected LibrarySessionInterface |
m_Session
Session context.
|
static String |
NAME_ATTRIBUTE
The name of the attribute which references the
Credential manager Name for which this user is associated.
|
static String |
REALM_ATTRIBUTE
The name of the attribute which references the
Credential manager realm for which this user is associated.
|
static String |
TIMEZONE_ATTRIBUTE
The name of the attribute which references the
preferred timezone for which this user is associated.
|
Constructor and Description |
---|
CredentialManagerUser(LibrarySessionInterface session)
Construct a CredentialManagerUser
|
Modifier and Type | Method and Description |
---|---|
AttributeValue |
getAttribute(String attrKey)
Return an AttributeValue object
that holds the value of the requested attribute.
|
AttributeValue[] |
getAttributes()
Return array of all Attribute values that were set for this
new instance.
|
protected Boolean |
getBooleanAttribute(String attrKey)
Return boolean value of an attribute value set with setAttribute.
|
String |
getDistinguishedName()
Returns the Credential manager distinguished name for which this
user is associated.
|
String |
getEmailAddress()
Returns the email address for which this
user is associated.
|
String |
getFirstName()
Returns the First (given) name for which this
user is associated.
|
String |
getLanguage()
Returns the preferred language for which this
user is associated.
|
String |
getLastName()
Returns the Last name (surname) for which this
user is associated.
|
String |
getName()
Returns the Credential manager Name for which this
user is associated.
|
String |
getRealm()
Returns the Credential manager realm for which this
user is associated.
|
LibrarySessionInterface |
getSession()
Get the session used in constructing this instance.
|
protected String |
getStringAttribute(String attrKey)
Return String value of an attribute value set with setAttribute.
|
String |
getTimezone()
Returns the preferred timezone for which this
user is associated.
|
boolean |
isEnabled()
Returns the indication as to whether this user is enabled, meaning that
the user can authenticate with the Credential manager.
|
void |
removeAttribute(String attrKey)
Removes an attribute setting for the
new instance.
|
void |
setAttribute(AttributeValue value)
Set an attribute for the new instance.
|
void |
setAttribute(String attrKey,
AttributeValue value)
Set an attribute for the new instance.
|
void |
setAttributes(AttributeValue[] values)
Set a number of attributes for the new instance.
|
void |
setDistinguishedName(String value)
Sets the Credential manager distinguished name for which this
user is associated.
|
void |
setEmailAddress(String value)
Sets the email address for which this
user is associated.
|
void |
setEnabled(boolean value)
Sets the indication as to whether this user is enabled, meaning that
the user can authenticate with the Credential manager.
|
void |
setFirstName(String value)
Sets the First (given) name for which this
user is associated.
|
void |
setLanguage(String value)
Sets the preferred language for which this
user is associated.
|
void |
setLastName(String value)
Sets the Last name (surname) for which this
user is associated.
|
void |
setName(String value)
Sets the Credential manager Name for which this
user is associated.
|
void |
setRealm(String value)
Sets the Credential manager realm for which this
user is associated.
|
void |
setSession(LibrarySessionInterface session)
Set or reset the session used in constructing this instance.
|
void |
setTimezone(String value)
Sets the preferred timezone for which this
user is associated.
|
public static final String NAME_ATTRIBUTE
public static final String DISTINGUISHEDNAME_ATTRIBUTE
public static final String REALM_ATTRIBUTE
public static final String FIRSTNAME_ATTRIBUTE
public static final String LASTNAME_ATTRIBUTE
public static final String EMAILADDRESS_ATTRIBUTE
public static final String LANGUAGE_ATTRIBUTE
public static final String TIMEZONE_ATTRIBUTE
public static final String ENABLED_ATTRIBUTE
protected Hashtable m_Attributes
protected transient LibrarySessionInterface m_Session
public CredentialManagerUser(LibrarySessionInterface session) throws IfsException
session
- the session contextIfsException
- if the operation failspublic String getName() throws IfsException
IfsException
- other: if the operation fails.public String getDistinguishedName() throws IfsException
IfsException
- other: if the operation fails.public String getRealm() throws IfsException
IfsException
- other: if the operation fails.public String getFirstName() throws IfsException
IfsException
- other: if the operation fails.public String getLastName() throws IfsException
IfsException
- other: if the operation fails.public String getEmailAddress() throws IfsException
IfsException
- other: if the operation fails.public String getLanguage() throws IfsException
IfsException
- other: if the operation fails.public String getTimezone() throws IfsException
IfsException
- other: if the operation fails.public boolean isEnabled() throws IfsException
IfsException
- other: if the operation fails.public void setName(String value) throws IfsException
value
- the Name for this user.IfsException
- other: if the operation fails.public void setDistinguishedName(String value) throws IfsException
value
- the distinguished name for this user.IfsException
- other: if the operation fails.public void setRealm(String value) throws IfsException
value
- the realm for this user.IfsException
- other: if the operation fails.public void setFirstName(String value) throws IfsException
value
- the first name for this user.IfsException
- other: if the operation fails.public void setLastName(String value) throws IfsException
value
- the last name for this user.IfsException
- other: if the operation fails.public void setEmailAddress(String value) throws IfsException
value
- the email address for this user.IfsException
- other: if the operation fails.public void setLanguage(String value) throws IfsException
value
- the preferred language for this user.IfsException
- other: if the operation fails.public void setTimezone(String value) throws IfsException
value
- the preferred timezone for this user.IfsException
- other: if the operation fails.public void setEnabled(boolean value) throws IfsException
value
- indication of this user being enabledIfsException
- other: if the operation fails.public LibrarySessionInterface getSession()
IfsException
- if operation fails.public void setSession(LibrarySessionInterface session) throws IfsException
session
- the new session contextIfsException
- if operation fails.public void setAttribute(String attrKey, AttributeValue value) throws IfsException
Each invocation of this method results in another attribute setting being added to an internal map.
attrKey
- the attribute keyvalue
- the attribute value.IfsException
- if operation fails.public void setAttribute(AttributeValue value) throws IfsException
value
- the attribute value.IfsException
- 10415: if name not specified in the valueIfsException
- other: if the operation failspublic void setAttributes(AttributeValue[] values) throws IfsException
values
- the attribute values.IfsException
- if operation fails.public AttributeValue getAttribute(String attrKey) throws IfsException
attrKey
- the name of the AttributeValue to be returnedIfsException
- if operation fails.public AttributeValue[] getAttributes() throws IfsException
IfsException
- if operation fails.protected String getStringAttribute(String attrKey)
attrKey
- the name of the Attributeprotected Boolean getBooleanAttribute(String attrKey)
attrKey
- the name of the Attributepublic void removeAttribute(String attrKey) throws IfsException
attrKey
- The name of the Attribute to be removed.IfsException
- if operation fails.Copyright © 2023. All rights reserved.