|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.servlet.sip.security.authentication.AuthenticatorBase
public abstract class AuthenticatorBase
Base authenticator class. Based on the catalina authenticator.
| Field Summary | |
|---|---|
protected java.lang.String |
algorithm
The message digest algorithm to be used when generating session identifiers. |
protected boolean |
cache
Should we cache authenticated Principals if the request is part of an HTTP session? |
protected org.apache.catalina.Context |
context
The Context to which this Valve is attached. |
protected static java.lang.String |
DEFAULT_ALGORITHM
The default message digest algorithm to use if we cannot use the requested one. |
protected java.security.MessageDigest |
digest
Return the MessageDigest implementation to be used when creating session identifiers. |
protected java.lang.String |
entropy
A String initialization parameter used to increase the entropy of the initialization of our random number generator. |
protected static java.lang.String |
INFO
Descriptive information about this implementation. |
protected java.util.Random |
random
A random number generator to use when generating session identifiers. |
protected java.lang.String |
randomClass
The Java class name of the random number generator class to be used when generating session identifiers. |
protected static org.apache.naming.StringManager |
STRING_MANAGER
The string manager for this package. |
| Constructor Summary | |
|---|---|
AuthenticatorBase()
|
|
| Method Summary | |
|---|---|
protected abstract boolean |
authenticate(SipServletRequestImpl request,
SipServletResponseImpl response,
SipLoginConfig config)
Authenticate the user making this request, based on the specified login configuration. |
java.lang.String |
getAlgorithm()
Return the message digest algorithm for this Manager. |
boolean |
getCache()
Return the cache authenticated Principals flag. |
org.apache.catalina.Context |
getContext()
|
protected java.security.MessageDigest |
getDigest()
Return the MessageDigest object to be used for calculating session identifiers. |
java.lang.String |
getEntropy()
Return the entropy increaser value, or compute a semi-useful value if this String has not yet been set. |
java.lang.String |
getInfo()
Return descriptive information about this Valve implementation. |
protected java.util.Random |
getRandom()
Return the random number generator instance we should use for generating session identifiers. |
java.lang.String |
getRandomClass()
Return the random number generator class name. |
protected void |
register(SipServletRequestImpl request,
SipServletResponseImpl response,
java.security.Principal principal,
java.lang.String authType,
java.lang.String username,
java.lang.String password)
Register an authenticated Principal and authentication type in our request, in the current session (if there is one), and with our SingleSignOn valve, if there is one. |
void |
setAlgorithm(java.lang.String algorithm)
Set the message digest algorithm for this Manager. |
void |
setCache(boolean cache)
Set the cache authenticated Principals flag. |
void |
setContext(org.apache.catalina.Context context)
|
void |
setEntropy(java.lang.String entropy)
Set the entropy increaser value. |
void |
setRandomClass(java.lang.String randomClass)
Set the random number generator class name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.catalina.Authenticator |
|---|
authenticate, login, logout |
| Field Detail |
|---|
protected static final java.lang.String DEFAULT_ALGORITHM
protected java.lang.String algorithm
java.security.MessageDigest class on your platform.
protected boolean cache
protected org.apache.catalina.Context context
protected java.security.MessageDigest digest
protected java.lang.String entropy
protected static final java.lang.String INFO
protected java.util.Random random
protected java.lang.String randomClass
protected static final org.apache.naming.StringManager STRING_MANAGER
| Constructor Detail |
|---|
public AuthenticatorBase()
| Method Detail |
|---|
public java.lang.String getAlgorithm()
public void setAlgorithm(java.lang.String algorithm)
algorithm - The new message digest algorithmpublic boolean getCache()
public void setCache(boolean cache)
cache - The new cache flagpublic java.lang.String getEntropy()
public void setEntropy(java.lang.String entropy)
entropy - The new entropy increaser valuepublic java.lang.String getInfo()
public java.lang.String getRandomClass()
public void setRandomClass(java.lang.String randomClass)
randomClass - The new random number generator class name
protected abstract boolean authenticate(SipServletRequestImpl request,
SipServletResponseImpl response,
SipLoginConfig config)
throws java.io.IOException
true if any specified
constraint has been satisfied, or false if we have
created a response challenge already.
request - Request we are processingresponse - Response we are creatingconfig - Login configuration describing how authentication
should be performed
java.io.IOException - if an input/output error occursprotected java.security.MessageDigest getDigest()
protected java.util.Random getRandom()
protected void register(SipServletRequestImpl request,
SipServletResponseImpl response,
java.security.Principal principal,
java.lang.String authType,
java.lang.String username,
java.lang.String password)
request - The servlet request we are processingresponse - The servlet response we are generatingprincipal - The authenticated Principal to be registeredauthType - The authentication type to be registeredusername - Username used to authenticate (if any)password - Password used to authenticate (if any)public org.apache.catalina.Context getContext()
public void setContext(org.apache.catalina.Context context)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||