public enum SecurityPolicy extends Enum<SecurityPolicy> implements Policy
Policy.PolicyType
Enum Constant and Description |
---|
AUTHORIZATION
Ensure that the client is authorized to use the service.
|
CLIENT_AUTHENTICATION
Ensure that the client is authenticated by the server.
|
CONFIDENTIALITY
Ensure that only authorized entities can view the contents of a message.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the string identifier for the policy.
|
Policy |
getPolicyDependency()
Returns a policy which is a dependency of this Policy.
|
QName |
getQName()
Returns the qualified identifier for the policy.
|
boolean |
isCompatibleWith(Policy target)
Returns whether the policy passed in parameter is compatible with this or not.
|
String |
toString() |
static SecurityPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SecurityPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SecurityPolicy AUTHORIZATION
public static final SecurityPolicy CLIENT_AUTHENTICATION
public static final SecurityPolicy CONFIDENTIALITY
public static SecurityPolicy[] values()
for (SecurityPolicy c : SecurityPolicy.values()) System.out.println(c);
public static SecurityPolicy 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 QName getQName()
public String getName()
public String toString()
toString
in class Enum<SecurityPolicy>
public boolean isCompatibleWith(Policy target)
isCompatibleWith
in interface Policy
target
- policy to check compatibilitypublic Policy getPolicyDependency()
getPolicyDependency
in interface Policy
Copyright © 2013–2020 JBoss by Red Hat. All rights reserved.