public static final class DOFAuthenticator.SecureGroupNode extends java.lang.Object implements DOFImmutable, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
DOFAuthenticator.SecureGroupNode.GroupConfig
The secure group configuration parameters for a node that represents a secure group.
|
Modifier and Type | Field and Description |
---|---|
static DOFAuthenticator.SecureGroupNode.GroupConfig |
DEFAULT_GROUP_CONFIG
The default group configuration.
|
Modifier and Type | Method and Description |
---|---|
static DOFAuthenticator.SecureGroupNode |
create(DOFObjectID.Authentication nodeID,
int sourceID,
int stateID,
short epoch,
byte[] credentialStorage,
java.util.Map<java.lang.Integer,DOFPermissionSet> permissions,
boolean isEnabled,
DOFAuthenticator.SecureGroupNode.GroupConfig groupConfig)
Create a SecureGroup node for authentication.
|
static DOFAuthenticator.SecureGroupNode |
create(DOFObjectID.Authentication nodeID,
int sourceID,
int stateID,
short epoch,
java.util.List<java.lang.Integer> credentialTypes,
java.util.Map<java.lang.Integer,DOFPermissionSet> permissions,
boolean isEnabled,
DOFAuthenticator.SecureGroupNode.GroupConfig groupConfig)
Create a SecureGroup node for management.
|
byte[] |
getCredentialsStorage()
Return the node's stored credentials that can be used to obtain a secret.
|
java.util.List<java.lang.Integer> |
getCredentialTypes()
Returns a list of credential types this node has.
|
short |
getEpoch()
The group's epoch, which is a counter that is incremented every time
a groups secret is changed.
|
DOFAuthenticator.SecureGroupNode.GroupConfig |
getGroupConfig()
Get the node's secure group configuration.
|
DOFObjectID.Authentication |
getNodeID()
Returns this Node's identifier.
|
java.util.Map<java.lang.Integer,DOFPermissionSet> |
getPermissions()
Returns the node's permissions.
|
java.util.List<java.lang.Integer> |
getSecurityScopeIDs()
Convenience method that returns the node's permissions security scope identifiers.
|
int |
getSourceIdentifier()
Returns this node's source identifier.
|
int |
getStateID()
The group's state identifier, which is a unique number that identifies the group.
|
boolean |
isEnabled()
Returns whether or not the Node is isEnabled.
|
public static final DOFAuthenticator.SecureGroupNode.GroupConfig DEFAULT_GROUP_CONFIG
public int getSourceIdentifier()
public java.util.Map<java.lang.Integer,DOFPermissionSet> getPermissions()
public java.util.List<java.lang.Integer> getSecurityScopeIDs()
public DOFAuthenticator.SecureGroupNode.GroupConfig getGroupConfig()
DOFObjectID.CLASS_GROUP
, otherwise it must return the groups configuration.public DOFObjectID.Authentication getNodeID()
public byte[] getCredentialsStorage()
public java.util.List<java.lang.Integer> getCredentialTypes()
public short getEpoch()
public int getStateID()
public boolean isEnabled()
public static DOFAuthenticator.SecureGroupNode create(DOFObjectID.Authentication nodeID, int sourceID, int stateID, short epoch, byte[] credentialStorage, java.util.Map<java.lang.Integer,DOFPermissionSet> permissions, boolean isEnabled, DOFAuthenticator.SecureGroupNode.GroupConfig groupConfig)
nodeID
- The identifier of the node. Must not be null.sourceID
- The node's source identifier.stateID
- The group's state identifier.epoch
- The group's epoch.credentialStorage
- The credential private storage for the node.permissions
- The node's permissions per security scope identifier.isEnabled
- Whether or not the node is isEnabled.groupConfig
- The node's group config.public static DOFAuthenticator.SecureGroupNode create(DOFObjectID.Authentication nodeID, int sourceID, int stateID, short epoch, java.util.List<java.lang.Integer> credentialTypes, java.util.Map<java.lang.Integer,DOFPermissionSet> permissions, boolean isEnabled, DOFAuthenticator.SecureGroupNode.GroupConfig groupConfig)
nodeID
- The identifier of the node. Must not be null.sourceID
- The node's source identifier.stateID
- The group's state identifier.epoch
- The group's epoch.credentialTypes
- The list of credential types this node has.permissions
- The node's permissions per security scope identifier.isEnabled
- Whether or not the node is isEnabled.groupConfig
- The node's group config.