Class Overview
Static class that contains utilities for dealing with Java SASL
security policy-related properties.
Summary
Public Methods |
static
boolean
|
checkPolicy(int flags, Map props)
Determines whether a mechanism's characteristics, as defined in flags,
fits the security policy properties found in props.
|
static
String[]
|
filterMechs(String[] mechs, int[] policies, Map props)
Given a list of mechanisms and their characteristics, select the
subset that conforms to the policies defined in props.
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
|
Constants
public
static
final
int
FORWARD_SECRECY
Constant Value:
8
(0x00000008)
public
static
final
int
NOACTIVE
Constant Value:
2
(0x00000002)
public
static
final
int
NOANONYMOUS
Constant Value:
16
(0x00000010)
public
static
final
int
NODICTIONARY
Constant Value:
4
(0x00000004)
public
static
final
int
NOPLAINTEXT
Constant Value:
1
(0x00000001)
public
static
final
int
PASS_CREDENTIALS
Constant Value:
512
(0x00000200)
Public Methods
public
static
boolean
checkPolicy
(int flags, 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
public
static
String[]
filterMechs
(String[] mechs, int[] policies, 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.