com.ibm.security.sasl.util
Class PolicyUtils
- java.lang.Object
com.ibm.security.sasl.util.PolicyUtils
- public final class PolicyUtils
- extends java.lang.Object
Author:
Rosanna Lee
Field Summary
Modifier and Type | Field and Description |
---|---|
|
FORWARD_SECRECY
|
|
NOACTIVE
|
|
NOANONYMOUS
|
|
NODICTIONARY
|
|
NOPLAINTEXT
|
|
PASS_CREDENTIALS
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
checkPolicy(int flags,java.util.Map props)
Determines whether a mechanism's characteristics, as defined in flags,
fits the security policy properties found in props.
|
|
filterMechs(java.lang.String[] mechs,int[] policies,java.util.Map props)
Given a list of mechanisms and their characteristics, select the
subset that conforms to the policies defined in props.
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail
NOPLAINTEXT
- public static final int NOPLAINTEXT
See Also:
NOACTIVE
- public static final int NOACTIVE
See Also:
NODICTIONARY
- public static final int NODICTIONARY
See Also:
FORWARD_SECRECY
- public static final int FORWARD_SECRECY
See Also:
NOANONYMOUS
- public static final int NOANONYMOUS
See Also:
PASS_CREDENTIALS
- public static final int PASS_CREDENTIALS
See Also:
Method Detail
checkPolicy
- public static boolean checkPolicy( int flags,
- java.util.Map props)
Determines whether a mechanism's characteristics, as defined in flags,
fits the security policy properties found in props.
Parameters:
flags
- The mechanism's security characteristics props
- The security policy properties to check Returns:
true if passes; false if fails
filterMechs
- public static java.lang.String[] filterMechs( java.lang.String[] mechs,
- int[] policies,
- java.util.Map props)
Given a list of mechanisms and their characteristics, select the
subset that conforms to the policies defined in props.
Useful for SaslXXXFactory.getMechanismNames(props) implementations.