|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RgyAttributes
Class to manage a set of attributes to be passed to the RgyRegistry.createUser, RgyRegistry.createGroup, RgyUser.importNativeUser and RgyGroup.importNativeGroup methods.
Attribute names are case-insensitive, attribute values are case-sensitive. Even though the the attribute names are case-insensitive, their case is preserved as provided and where appropriate passed on to the underlying JNDI with that case. Thus may affect the case of the attributes names as stored in LDAP, however, that is likely only a cosmetic feature.
Multiple threads should not access the same instance of this interface at the same time.
Field Summary | |
---|---|
static java.lang.String |
ACCOUNT_EXPIRY_DATE_NAME
The LDAP Generalized time (GMT) at which the account will expire. |
static java.lang.String |
ADAM_UNLIMITED_DATE
A date in the far future used to indicate a time that will never be reached. |
static java.lang.String |
BOOL_FALSE_VALUE
|
static java.lang.String |
BOOL_TRUE_VALUE
|
static java.lang.String |
COMMON_NAME_NAME
The LDAP Common Name attribute name. |
static java.lang.String |
DESCRIPTION_NAME
The LDAP description attribute name. |
static java.lang.String |
DISABLE_TIME_INTERVAL_NAME
The time, in seconds, that the account will be locked out after MAX_LOGIN_FAILURES_NAME login failures have occurred. |
static java.lang.String |
IS_GSO_USER_NAME
Set to TRUE if the account is a Global Sign On (Web SSO) enabled account. |
static java.lang.String |
IS_SEC_ENTITY_NAME
Set to TRUE if the account is a Security Access Manager enabled account. |
static java.lang.String |
MAX_ACCOUNT_AGE_NAME
This value is not currently used and should not be set. |
static java.lang.String |
MAX_CONCURRENT_WEB_SESSIONS_NAME
The maximum number of concurrent web logins for the user. |
static java.lang.String |
MAX_INACTIVITY_TIME_NAME
This value is not currently used and should not be set. |
static java.lang.String |
MAX_LOGIN_FAILURES_NAME
This is the number of login failures that can occur before the account is either temporarily locked out for a period of time, or disabled, depending on DISABLE_TIME_INTERVAL_NAME . |
static java.lang.String |
MAX_PASSWORD_AGE_NAME
The number of seconds after the last password change time that the password is valid for. |
static java.lang.String |
MAX_PASSWORD_REPEATED_CHARS_NAME
The maximum number of times a character can be repeated consecutively in the password. |
static java.lang.String |
MIN_PASSWORD_AGE_NAME
This value is not currently used and should not be set. |
static java.lang.String |
MIN_PASSWORD_ALPHAS_NAME
The minimum number of alphabetic characters that must be present in the password. |
static java.lang.String |
MIN_PASSWORD_DIFFERENT_CHARS_NAME
This value is not currently used and should not be set. |
static java.lang.String |
MIN_PASSWORD_LENGTH_NAME
Minimum length of a password. |
static java.lang.String |
MIN_PASSWORD_NON_ALPHAS_NAME
The minimum number of non-alphabetic characters that must be present in the password. |
static java.lang.String |
MIN_PASSWORD_REUSE_TIME_NAME
This value is not currently used and should not be set. |
static java.lang.String |
NUMBER_WARN_DAYS_NAME
This value is not currently used and should not be set. |
static java.lang.String |
OBJECT_CLASS_NAME
The LDAP object class attribute name. |
static java.lang.String |
PASSWORD_REUSE_NUM_NAME
This value is not currently used and should not be set. |
static java.lang.String |
PASSWORD_SPACES_NAME
Whether space characters are permitted in a password. |
static java.lang.String |
PRINCIPAL_NAME_NAME
The Security Access Manager user name. |
static java.lang.String |
RESOURCE_CREDENTIALS_NAME
Multi-value String attribute that contains the Global Sign On (Web SSO) Resource Credentials. |
static java.lang.String |
RESOURCE_TYPE_GROUP_VALUE
Value returned for Resource Group credential type |
static java.lang.String |
RESOURCE_TYPE_WEB_VALUE
Value returned for Web Resource credential type |
static java.lang.String |
SEC_ACCT_VALID_NAME
Account valid setting. |
static java.lang.String |
SEC_AUTHORITY_NAME
The Security Access Manager domain the entry is a part of. |
static java.lang.String |
SEC_CERT_DN_NAME
Internal use only. |
static java.lang.String |
SEC_CERT_SERIAL_NUMBER_NAME
Internal use only. |
static java.lang.String |
SEC_DN_NAME
The LDAP Distinguished Name of the underlying LDAP registry entry for the user. |
static java.lang.String |
SEC_DOMAIN_ID_NAME
This value is set when the user is created and is an optimization to aid in quickly locating the account. |
static java.lang.String |
SEC_HAS_POLICY_NAME
Indicates whether the user has a user specific policy entry associated with their account. |
static java.lang.String |
SEC_HOME_GROUP_NAME
This value is currently not used. |
static java.lang.String |
SEC_LOGIN_TYPE_NAME
Internal use only. |
static java.lang.String |
SEC_OTHER_ALIAS_NAME
This value is currently not used. |
static java.lang.String |
SEC_PARTNER_ALIAS_NAME
This value is currently not used. |
static java.lang.String |
SEC_PWD_FAIL_COUNT_TIME_NAME
This value is currently not used. |
static java.lang.String |
SEC_PWD_FAILURES_NAME
Used to keep a count of the number of consecutive failures to authenticate with the correct password. |
static java.lang.String |
SEC_PWD_LAST_CHANGED_NAME
Set with the time the password was last changed. |
static java.lang.String |
SEC_PWD_LAST_FAILED_NAME
Used to record the time of the last failure to authenticate with the correct password. |
static java.lang.String |
SEC_PWD_LAST_USED_NAME
This value is currently not used. |
static java.lang.String |
SEC_PWD_UNLOCK_TIME_NAME
Used to record the amount of time until the account is unlocked. |
static java.lang.String |
SEC_PWD_VALID_NAME
Password valid setting. |
static java.lang.String |
SEC_SELF_ALIAS_NAME
This value is currently not used. |
static java.lang.String |
SEC_UUID_NAME
Universally Unique ID. |
static java.lang.String |
SURNAME_NAME
The LDAP Surname attribute name. |
static java.lang.String |
TOD_ACCESS_NAME
This policy can be used to limit when authentications can occur to particular days of the week and a specific range of time during the day. |
static java.lang.String |
UID_NAME
The LDAP Unique ID attribute name. |
static java.lang.String |
UNLIMITED_DATE
A date in the far future used to indicate a time that will never be reached. |
static java.lang.String |
UNLIMITED_VIRTUAL_VALUE
When passed as a value for ACCOUNT_EXPIRY_DATE_NAME the API
will correctly choose one of UNLIMITED_DATE or
ADAM_UNLIMITED_DATE to suite the underlying registry. |
static java.lang.String |
USER_PASSWORD_NAME
The LDAP password attribute name. |
Method Summary | |
---|---|
void |
addAttribute(java.lang.String name,
java.lang.Object value)
Adds the attribute value to any existing values for the attribute, or create a new attribute if not already present. |
void |
addAttribute(java.lang.String name,
java.lang.Object[] values)
Adds the values to any existing values for the attribute, or create a new attribute if not already present. |
java.lang.Object[] |
getAttributeValues(java.lang.String name)
Returns all of the attribute's values. |
java.lang.Object |
getOneAttributeValue(java.lang.String name)
Returns one of the attribute's values. |
java.util.Iterator<java.lang.String> |
nameIterator()
Returns an Iterator over the list of attribute names stored in this object. |
void |
putAttribute(java.lang.String name,
java.lang.Object value)
Replaces any existing values for the attribute, or create a new attribute if not already present. |
void |
putAttribute(java.lang.String name,
java.lang.Object[] values)
Replaces any existing values for the attribute, or create a new attribute if not already present. |
void |
putAttributesInto(RgyAttributes attributes)
Puts copies of all the attributes in this object into the RgyAttributes object provided. |
void |
removeAttribute(java.lang.String name)
Removes the attribute and all it's values. |
void |
removeAttribute(java.lang.String name,
java.lang.Object value)
Removes the specified attribute value leaving the remaining values. |
void |
removeAttribute(java.lang.String name,
java.lang.Object[] values)
Removes the specified attribute values leaving the remaining values. |
Field Detail |
---|
static final java.lang.String MIN_PASSWORD_LENGTH_NAME
static final java.lang.String PASSWORD_SPACES_NAME
static final java.lang.String MAX_PASSWORD_REPEATED_CHARS_NAME
static final java.lang.String MIN_PASSWORD_ALPHAS_NAME
UPPERCASE_LETTER
: General category "Lu" in the Unicode
specification
LOWERCASE_LETTER
: General category "Ll" in the Unicode
specification
TITLECASE_LETTER
: General category "Lt" in the Unicode
specification
MODIFIER_LETTER
: General category "Lm" in the Unicode
specification
OTHER_LETTER
: General category "Lo" in the Unicode specification
static final java.lang.String MIN_PASSWORD_NON_ALPHAS_NAME
MIN_PASSWORD_ALPHAS_NAME
.
The value must only be an decimal integer.
static final java.lang.String MAX_PASSWORD_AGE_NAME
static final java.lang.String ACCOUNT_EXPIRY_DATE_NAME
YYYYMMDDhhmmss.tZ
where:YYYY
= year (for example 2009)MM
= month (where January == 01)DD
= day of the month (beginning with 01)hh
= hour (00 -> 23)mm
= minute (00 -> 59)ss
= second (00 -> 59).
= this is the period character.t
= tenth's of the second (0 -> 9. Note this is ignored and set to 0)Z
= this is the 'Z' character. It indicates the time zone is GMT.Even though there are other forms for Generalized time, this is the only form the API recognizes.
A special value of UNLIMITED_VIRTUAL_VALUE
is accepted and
will be converted into a value suitable for storage in the underlying
registry. Note: Upon reading back this value, it will not be converted
into UNLIMITED_VIRTUAL_VALUE
, instead it will be either
UNLIMITED_DATE
or ADAM_UNLIMITED_DATE
.
static final java.lang.String DISABLE_TIME_INTERVAL_NAME
MAX_LOGIN_FAILURES_NAME
login failures have occurred. A value
of zero will cause the account to be disabled instead. The value
must be an decimal integer >= zero.
static final java.lang.String MAX_ACCOUNT_AGE_NAME
static final java.lang.String MAX_INACTIVITY_TIME_NAME
static final java.lang.String MAX_LOGIN_FAILURES_NAME
DISABLE_TIME_INTERVAL_NAME
. The value must be
an decimal integer >= zero. Also see configuration options:
ldap.login-failures-persistent
and
ldap.late-lockout-notification
static final java.lang.String MIN_PASSWORD_AGE_NAME
static final java.lang.String MIN_PASSWORD_DIFFERENT_CHARS_NAME
static final java.lang.String MIN_PASSWORD_REUSE_TIME_NAME
static final java.lang.String NUMBER_WARN_DAYS_NAME
static final java.lang.String PASSWORD_REUSE_NUM_NAME
static final java.lang.String TOD_ACCESS_NAME
days:start:end:zone
where:days
- is a decimal integer representing a bit mask of days
of the week. SUNDAY=1, MONDAY=2, TUESDAY=4, WEDNESDAY=8, THURSDAY=16,
FRIDAY=32, SATURDAY=64.start
- is a decimal integer representing the start minute
of the day * of allowed access.end
- is a decimal integer representing the end minute of
the day of allowed access.zone
- is a decimal integer that when set to 1 indicates
that GMT should be used when determining the current time of day and day
of week to evaluate this policy against. Other values will cause the
local default time zone to be be used.
static final java.lang.String MAX_CONCURRENT_WEB_SESSIONS_NAME
-3
When set a new login will displace (logout) other logins
of the same user.-4
When set, the number of concurrent logins is not
limited.
static final java.lang.String BOOL_TRUE_VALUE
static final java.lang.String BOOL_FALSE_VALUE
static final java.lang.String UNLIMITED_VIRTUAL_VALUE
ACCOUNT_EXPIRY_DATE_NAME
the API
will correctly choose one of UNLIMITED_DATE
or
ADAM_UNLIMITED_DATE
to suite the underlying registry. This
value will not be read back, rather the chosen value will be returned
instead.
static final java.lang.String UNLIMITED_DATE
static final java.lang.String ADAM_UNLIMITED_DATE
static final java.lang.String SEC_ACCT_VALID_NAME
BOOL_TRUE_VALUE
or BOOL_FALSE_VALUE
. When set to FALSE
the account can not be logged into.
static final java.lang.String SEC_PWD_VALID_NAME
BOOL_TRUE_VALUE
or BOOL_FALSE_VALUE
. When set to
FALSE the user will be required to change there password next login.
static final java.lang.String SEC_DN_NAME
static final java.lang.String SEC_UUID_NAME
static final java.lang.String SEC_LOGIN_TYPE_NAME
static final java.lang.String SEC_CERT_DN_NAME
static final java.lang.String SEC_CERT_SERIAL_NUMBER_NAME
static final java.lang.String SEC_HAS_POLICY_NAME
static final java.lang.String SEC_AUTHORITY_NAME
static final java.lang.String PRINCIPAL_NAME_NAME
static final java.lang.String SEC_PWD_FAILURES_NAME
MAX_LOGIN_FAILURES_NAME
policy, but only if the option
ldap.login-failures-persistent
is enabled.
Internal use only. This value can not be set or modified.
static final java.lang.String SEC_PWD_LAST_CHANGED_NAME
MAX_PASSWORD_AGE_NAME
policy. The
value is also updated to the current date when SEC_PWD_VALID_NAME
is set to "TRUE". Internal use only. This value can not be set or
modified.
static final java.lang.String SEC_PWD_LAST_USED_NAME
static final java.lang.String SEC_HOME_GROUP_NAME
static final java.lang.String SEC_DOMAIN_ID_NAME
static final java.lang.String SEC_PWD_LAST_FAILED_NAME
DISABLE_TIME_INTERVAL_NAME
policy.
Internal use only. This value can not be set or modified.
static final java.lang.String SEC_PWD_FAIL_COUNT_TIME_NAME
static final java.lang.String SEC_PWD_UNLOCK_TIME_NAME
DISABLE_TIME_INTERVAL_NAME
policy.
Internal use only. This value can not be set or modified.
static final java.lang.String SEC_SELF_ALIAS_NAME
static final java.lang.String SEC_PARTNER_ALIAS_NAME
static final java.lang.String SEC_OTHER_ALIAS_NAME
static final java.lang.String COMMON_NAME_NAME
static final java.lang.String SURNAME_NAME
static final java.lang.String UID_NAME
static final java.lang.String USER_PASSWORD_NAME
static final java.lang.String OBJECT_CLASS_NAME
static final java.lang.String DESCRIPTION_NAME
static final java.lang.String IS_SEC_ENTITY_NAME
static final java.lang.String IS_GSO_USER_NAME
static final java.lang.String RESOURCE_CREDENTIALS_NAME
static final java.lang.String RESOURCE_TYPE_WEB_VALUE
static final java.lang.String RESOURCE_TYPE_GROUP_VALUE
Method Detail |
---|
void putAttribute(java.lang.String name, java.lang.Object[] values)
name
- Name of the attribute to create/replace.values
- An array of either Strings or byte[]s values to assign
to the attribute. The caller must know whether the attribute
accepts binary (byte[]) or string (String) values, and they
can not be intermixed. All Security Access Manger attributes only
accept String values, some Native entry attributes may accept
binary values. Duplicate values will be reduced to a single instance.void putAttribute(java.lang.String name, java.lang.Object value)
name
- Name of the attribute to create/replace.value
- Either a String or byte[] value to assign
to the attribute. The caller must know whether the attribute
accepts binary (byte[]) or string (String) values, and they
can not be intermixed. All Security Access Manger attributes only
accept String values, some Native entry attributes may accept
binary values.void addAttribute(java.lang.String name, java.lang.Object value)
name
- Name of the attribute to add the value to.value
- Either a String or byte[] value to add to the attribute.
The caller must know whether the attribute accepts binary (byte[]) or
string (String) values, and they can not be intermixed. All Security
Access Manger attributes only accept String values, some Native entry
attributes may accept binary values. Duplicate values will be reduced
to a single instance.void addAttribute(java.lang.String name, java.lang.Object[] values)
name
- Name of the attribute to add the value to.values
- An Object array of either String or byte[] values to add
to the attribute. The caller must know whether the attribute accepts
binary (byte[]) or string (String) values, and they can not be
intermixed. All Security Access Manger attributes only accept String
values, some Native entry attributes may accept binary values.
Duplicate values will be reduced to a single instance.java.lang.Object getOneAttributeValue(java.lang.String name)
name
- The name of the attribute to fetch the value from.
java.lang.Object[] getAttributeValues(java.lang.String name)
name
- The name of the attribute to fetch the values from.
void removeAttribute(java.lang.String name)
name
- The name of the attribute to remove.void removeAttribute(java.lang.String name, java.lang.Object value)
name
- The name of the attribute to remove the value from.value
- The value to remove.void removeAttribute(java.lang.String name, java.lang.Object[] values)
name
- The name of the attribute to remove the values from.values
- The values to remove.void putAttributesInto(RgyAttributes attributes)
attributes
- Where to put the attributes.java.util.Iterator<java.lang.String> nameIterator()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |