public static enum InterNodeCommunicationAuthenticationService.Role extends Enum<InterNodeCommunicationAuthenticationService.Role>
Role for which a client authenticated. The role defines the kind of resources the client may access.
In general, the PRIVILEGED
role is used for inter-node
communication. However, this role depends on an authentication token that
involves a time stamp. Therefore, authentication on this level might not
work if there is a significant clock skew between servers. For
applications where communication should still be possible under such
circumstances, the UNPRIVILEGED
role can be used. This role uses
a fixed token. Obviously, this role should never be used for sensitive
services because an attacker gaining access to the shared secret once
(e.g. by listening on the network wire) will be able to authenticate with
this role indefinitely.
Enum Constant and Description |
---|
NOT_AUTHENTICATED
Authentication was not successful.
|
PRIVILEGED
Authentication for privileged access.
|
UNPRIVILEGED
Authentication for unprivileged access.
|
Modifier and Type | Method and Description |
---|---|
static InterNodeCommunicationAuthenticationService.Role |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InterNodeCommunicationAuthenticationService.Role[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InterNodeCommunicationAuthenticationService.Role NOT_AUTHENTICATED
public static final InterNodeCommunicationAuthenticationService.Role UNPRIVILEGED
public static final InterNodeCommunicationAuthenticationService.Role PRIVILEGED
public static InterNodeCommunicationAuthenticationService.Role[] values()
for (InterNodeCommunicationAuthenticationService.Role c : InterNodeCommunicationAuthenticationService.Role.values()) System.out.println(c);
public static InterNodeCommunicationAuthenticationService.Role valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2011–2017 aquenos GmbH. All rights reserved.