public abstract class Account
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ACC_ALL
Account selection type - all.
|
static int |
ACC_GROUP
Aaccount type - group.
|
static int |
ACC_PROCESS
Account type - process.
|
static int |
ACC_USER
Account type - user.
|
private java.lang.String |
alias
Truststore alias of the associated certificate entry.
|
private java.lang.String |
description
Text description of this group.
|
private boolean |
enabled
Enabled status of this account.
|
private java.lang.String |
subjectId
The subject ID this account represents.
|
Constructor and Description |
---|
Account(java.lang.String subjectId,
boolean enabled,
java.lang.String description,
java.lang.String alias)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
(package private) abstract int |
getAccountType()
Gets the account type of this account.
|
(package private) java.lang.String |
getAlias()
Gets the certificate entry alias in the trust store for this account.
|
(package private) java.lang.String |
getDescription()
Gets the verbose description for this account.
|
(package private) java.lang.String |
getSubjectId()
Gets the subject ID for this account.
|
(package private) boolean |
isEnabled()
Gets the enabled status of this account.
|
(package private) void |
setEnabled(boolean enabled)
Changes the enabled status of this account.
|
public static final int ACC_PROCESS
public static final int ACC_USER
public static final int ACC_GROUP
public static final int ACC_ALL
private java.lang.String subjectId
private java.lang.String description
private java.lang.String alias
private boolean enabled
Account(java.lang.String subjectId, boolean enabled, java.lang.String description, java.lang.String alias)
subjectId
- The account's subject ID (also known as account name).enabled
- true
if this account is enableddescription
- The verbose description of the account.alias
- The certificate entry name for this account in the truststore
This may be null
.boolean isEnabled()
true
if the account is enabledvoid setEnabled(boolean enabled)
enabled
- true
if the account is enabledjava.lang.String getSubjectId()
java.lang.String getDescription()
java.lang.String getAlias()
null
.abstract int getAccountType()
ACC_*
constants.