public static final class DOFAuthenticator.AuthenticationNode extends java.lang.Object implements DOFImmutable, java.io.Serializable
Modifier and Type | Method and Description |
---|---|
static DOFAuthenticator.AuthenticationNode |
create(DOFObjectID.Authentication nodeID,
int sourceID,
byte[] credentialStorage,
java.util.Map<java.lang.Integer,DOFPermissionSet> permissions,
java.util.Collection<DOFObjectID.Authentication> groups,
boolean isEnabled)
Create an Authentication node for authentication.
|
static DOFAuthenticator.AuthenticationNode |
create(DOFObjectID.Authentication nodeID,
int sourceID,
java.util.List<java.lang.Integer> credentialTypes,
java.util.Map<java.lang.Integer,DOFPermissionSet> permissions,
java.util.Collection<DOFObjectID.Authentication> groups,
boolean isEnabled)
Create an Authentication 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.
|
java.util.Collection<DOFObjectID.Authentication> |
getGroups()
Get the list of secure groups that the node is a member of.
|
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.
|
boolean |
isEnabled()
Returns whether or not the Node is isEnabled.
|
boolean |
isMember(DOFObjectID.Authentication groupID)
Return whether or not this node is a member of the specified group.
|
public int getSourceIdentifier()
public java.util.Map<java.lang.Integer,DOFPermissionSet> getPermissions()
public java.util.List<java.lang.Integer> getSecurityScopeIDs()
public java.util.Collection<DOFObjectID.Authentication> getGroups()
public boolean isMember(DOFObjectID.Authentication groupID)
groupID
- The group identifier to check.public DOFObjectID.Authentication getNodeID()
public byte[] getCredentialsStorage()
public java.util.List<java.lang.Integer> getCredentialTypes()
public boolean isEnabled()
public static DOFAuthenticator.AuthenticationNode create(DOFObjectID.Authentication nodeID, int sourceID, byte[] credentialStorage, java.util.Map<java.lang.Integer,DOFPermissionSet> permissions, java.util.Collection<DOFObjectID.Authentication> groups, boolean isEnabled)
nodeID
- The identifier of the node. Must not be null.sourceID
- The node's source identifier.credentialStorage
- The credential private storage for the node. May be null if credentials of the requested type do not exist.permissions
- The node's permissions per security scope identifier.groups
- The secure groups that the node is a member of.isEnabled
- Whether or not the node is isEnabled.public static DOFAuthenticator.AuthenticationNode create(DOFObjectID.Authentication nodeID, int sourceID, java.util.List<java.lang.Integer> credentialTypes, java.util.Map<java.lang.Integer,DOFPermissionSet> permissions, java.util.Collection<DOFObjectID.Authentication> groups, boolean isEnabled)
nodeID
- The identifier of the node. Must not be null.sourceID
- The node's source identifier.credentialTypes
- The types of credentials this node has.permissions
- The node's permissions per security scope identifier.groups
- The secure groups that the node is a member of.isEnabled
- Whether or not the node is isEnabled.