Package com.tangosol.net.security
Class SimpleHandler
java.lang.Object
com.tangosol.util.Base
com.tangosol.net.security.SimpleHandler
- All Implemented Interfaces:
Principal
,CallbackHandler
The SimpleHandler class is a CallbackHandler implementation
based on a specified user name and password.
- Since:
- Coherence 2.5
- Author:
- gg 2004.08.03
-
Nested Class Summary
Nested classes/interfaces inherited from class com.tangosol.util.Base
Base.LoggingWriter
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSimpleHandler
(String sName, char[] acPassword) Construct a SimpleHandler.SimpleHandler
(String sName, char[] acPassword, boolean fDispose) Construct a SimpleHandler.SimpleHandler
(String sName, String sPassword, boolean fDispose) Construct a SimpleHandler. -
Method Summary
Methods inherited from class com.tangosol.util.Base
azzert, azzert, azzert, azzertFailed, breakLines, breakLines, capitalize, checkNotEmpty, checkNotNull, checkRange, computeSafeWaitTime, decimalValue, dup, dup, ensureBigDecimal, ensureClassLoader, ensureRuntimeException, ensureRuntimeException, equals, equalsDeep, err, err, err, err, err, escape, formatDateTime, getCallerStackFrame, getCommonMonitor, getCommonMonitor, getCommonMonitor, getContextClassLoader, getContextClassLoader, getDeepMessage, getErr, getLastSafeTimeMillis, getLog, getMaxDecDigits, getMaxHexDigits, getOriginalException, getOut, getProcessRandom, getRandom, getRandomBinary, getRandomBinary, getRandomString, getSafeTimeMillis, getStackFrame, getStackFrames, getStackTrace, getStackTrace, getStackTrace, getThreadFactory, getTimeZone, getUpTimeMillis, hashCode, hexValue, indentString, indentString, isDecimal, isHex, isLogEcho, isOctal, log, log, log, log, log, makeInteger, makeLong, makeThread, mergeArray, mergeBooleanArray, mergeByteArray, mergeCharArray, mergeDoubleArray, mergeFloatArray, mergeIntArray, mergeLongArray, mod, mod, octalValue, out, out, out, out, out, pad, parseBandwidth, parseBandwidth, parseDelimitedString, parseHex, parseHex, parseMemorySize, parseMemorySize, parsePercentage, parseTime, parseTime, parseTimeNanos, parseTimeNanos, printStackTrace, randomize, randomize, randomize, randomize, read, read, read, read, read, read, read, replace, setErr, setLog, setLogEcho, setOut, sleep, toBandwidthString, toBandwidthString, toCharEscape, toCrc, toCrc, toCrc, toCrc, toCrc, toDecString, toDelimitedString, toDelimitedString, toDelimitedString, toDelimitedString, toHex, toHex, toHexDump, toHexEscape, toHexEscape, toHexEscape, toHexEscape, toHexString, toMemorySizeString, toMemorySizeString, toQuotedCharEscape, toQuotedStringEscape, toSqlString, toString, toString, toStringEscape, toUnicodeEscape, trace, trace, trace, trace, trace, trace, trace, trace, trace, truncateString, truncateString, wait
-
Constructor Details
-
SimpleHandler
Construct a SimpleHandler.- Parameters:
sName
- the user nameacPassword
- the password
-
SimpleHandler
Construct a SimpleHandler.- Parameters:
sName
- the user namesPassword
- the passwordfDispose
- true if the password should be disposed as soon as the PasswordCallback has been served
-
SimpleHandler
Construct a SimpleHandler.- Parameters:
sName
- the user nameacPassword
- the passwordfDispose
- true if the password should be disposed as soon as the PasswordCallback has been served
-
-
Method Details
-
handle
Invoke an array of Callbacks. This implementation processes only the NameCallback and PasswordCallback types. It completely ignores the TextOutputCallback and ConfirmationCallback and throws the UnsupportedCallbackException for any other type.- Specified by:
handle
in interfaceCallbackHandler
- Parameters:
aCallback
- an array ofCallback
objects which contains the information requested by an underlying security service to be retrieved or displayed.- Throws:
UnsupportedCallbackException
- if the implementation of this method does not support one or more of the Callbacks specified in thecallbacks
parameter.
-
equals
Compare this principal to the specified object. Returns true if the object passed in matches the principal represented by the implementation of this interface. -
toString
Return a string representation of this principal. -
hashCode
public int hashCode()Return a hashcode for this principal. -
getName
Return the name of this principal.
-