public class SecurityPolicyAssertionHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static boolean |
DEBUG |
private static java.util.logging.Logger |
LOGGER |
Constructor and Description |
---|
SecurityPolicyAssertionHelper() |
Modifier and Type | Method and Description |
---|---|
private static void |
addTokenType(java.util.List<java.lang.String> tokenTypes,
weblogic.wsee.security.policy.assertions.xbeans.SecurityTokenType[] sttArray) |
static void |
checkLogicalError(NormalizedExpression ne)
check if there is any WSSP policy logical error
|
private static int |
checkPartsError(PolicyAlternative pa) |
private static int |
checkSamlError(weblogic.wsee.security.wssp.SecurityPolicyAssertionInfo sec) |
private static int |
checkTokenInclusion(weblogic.wsee.security.wssp.AsymmetricBindingInfo asymm) |
static java.util.List<java.lang.String> |
getAllSupportedTokenTypes(PolicyAlternative pa)
Return a unique set of supported token types(no duplicates)
|
static PolicyAlternative |
getPolicyAlternativeWithoutOption(PolicyAlternative pa) |
static boolean |
hasOptionalAttribute(PolicyAlternative pa)
check if the policy has any optional attribute
|
static int |
policyLogicalErrorDetector(PolicyAlternative pa)
verify policy and find logic error
|
private static int |
policyLogicalErrorDetector(PolicyAlternative pa,
boolean strict)
verify policy and find logic error
|
static int |
policyLogicalErrorDetectorRuntime(PolicyAlternative pa)
verify policy and find logic error
|
private static final java.util.logging.Logger LOGGER
private static final boolean DEBUG
public static java.util.List<java.lang.String> getAllSupportedTokenTypes(PolicyAlternative pa)
pa
- private static void addTokenType(java.util.List<java.lang.String> tokenTypes, weblogic.wsee.security.policy.assertions.xbeans.SecurityTokenType[] sttArray)
public static void checkLogicalError(NormalizedExpression ne) throws PolicyException
ne
- NormalizedExpression of the effective request/response policyPolicyException
public static int policyLogicalErrorDetector(PolicyAlternative pa)
pa
- one policy alternativeSecurityPolicyException
- Validation errorspublic static int policyLogicalErrorDetectorRuntime(PolicyAlternative pa)
pa
- one policy alternativeSecurityPolicyException
- Validation errorsprivate static int policyLogicalErrorDetector(PolicyAlternative pa, boolean strict)
pa
- one policy alternativestrict
- if ture then check for moreSecurityPolicyException
- Validation errorsprivate static int checkTokenInclusion(weblogic.wsee.security.wssp.AsymmetricBindingInfo asymm)
private static int checkSamlError(weblogic.wsee.security.wssp.SecurityPolicyAssertionInfo sec)
private static int checkPartsError(PolicyAlternative pa)
public static boolean hasOptionalAttribute(PolicyAlternative pa)
pa
- one policy alternativepublic static PolicyAlternative getPolicyAlternativeWithoutOption(PolicyAlternative pa)