public enum TrustRelationshipMode extends Enum<TrustRelationshipMode>
Enum Constant and Description |
---|
BLACKLIST
Allow clients from every address except those which match the configured addresses
|
NONE
No trust relationship configured (allow all clients from all addresses)
|
WHITELIST
Only allow clients from configured addresses
|
Modifier and Type | Method and Description |
---|---|
static TrustRelationshipMode |
fromId(long id)
Converts between id and enum value
|
long |
getId() |
static TrustRelationshipMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TrustRelationshipMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TrustRelationshipMode NONE
public static final TrustRelationshipMode WHITELIST
public static final TrustRelationshipMode BLACKLIST
public static TrustRelationshipMode[] values()
for (TrustRelationshipMode c : TrustRelationshipMode.values()) System.out.println(c);
public static TrustRelationshipMode 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 null@Nullable public static TrustRelationshipMode fromId(long id)
id
- id of the trust relationship mode to fetchid
, or null none can be foundpublic long getId()
Copyright © 2021 Atlassian. All rights reserved.