public enum OperationSecurityLevel extends Enum<OperationSecurityLevel>
| Enum Constant and Description |
|---|
ANONYMOUS_APP_USER
Only clients with the App Key and App Secret of the app linked to this
operation can access it.
|
AUTHENTICATED_APP_USER
Only clients authenticated with Identity Service linked to this operation
can access it.
|
PRIVATE
No client can access this operation.
|
PUBLIC
All clients can access this operation without any authentication.
|
| Modifier and Type | Method and Description |
|---|---|
static OperationSecurityLevel |
fromString(String securityName)
Returns the
OperationSecurityLevel corresponding to the given
string. |
String |
getSecurityName()
Gets the underline security name.
|
static boolean |
isAnonymousAppUser(String securityName)
Returns true if the given security name is
ANONYMOUS_APP_USER
operation. |
static boolean |
isAuthenticatedAppUser(String securityName)
Returns true if the given security name is
AUTHENTICATED_APP_USER
operation or an invalid value. |
static boolean |
isPrivate(String securityName)
Returns true if the given security name is
PRIVATE operation. |
static boolean |
isPublic(String securityName)
Returns true if the given security name is
PUBLIC operation. |
static OperationSecurityLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OperationSecurityLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OperationSecurityLevel PUBLIC
public static final OperationSecurityLevel ANONYMOUS_APP_USER
public static final OperationSecurityLevel AUTHENTICATED_APP_USER
public static final OperationSecurityLevel PRIVATE
public static OperationSecurityLevel[] values()
for (OperationSecurityLevel c : OperationSecurityLevel.values()) System.out.println(c);
public static OperationSecurityLevel 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 nullpublic String getSecurityName()
public static OperationSecurityLevel fromString(String securityName)
OperationSecurityLevel corresponding to the given
string. If no match then returns
OperationSecurityLevel.AUTHENTICATED_APP_USER.securityName - The security nameOperationSecurityLevel corresponding to the given
stringpublic static boolean isPublic(String securityName)
PUBLIC operation.securityName - The security namePUBLIC operation, false
otherwise.public static boolean isAnonymousAppUser(String securityName)
ANONYMOUS_APP_USER
operation.securityName - The security nameANONYMOUS_APP_USER
operation, false otherwise.public static boolean isPrivate(String securityName)
PRIVATE operation.securityName - The security namePRIVATE operation, false
otherwise.public static boolean isAuthenticatedAppUser(String securityName)
AUTHENTICATED_APP_USER
operation or an invalid value.securityName - The security nameAUTHENTICATED_APP_USER
operation or an invalid value, false otherwise.Copyright © 2019. All rights reserved.