|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.protocol.sip.security.CredentialsCache
class CredentialsCache
The class is used to cache all realms that a certain call has been authorized against and all credentials that have been used for each realm. Note that rfc3261 suggests keeping callId->credentials mapping where as we map realm->credentials. This is done to avoid asking the user for a password before each call.
| Constructor Summary | |
|---|---|
CredentialsCache()
|
|
| Method Summary | |
|---|---|
(package private) void |
cacheAuthorizationHeader(String callid,
javax.sip.header.AuthorizationHeader authorization)
Cache the bindings of call-id and authorization header. |
(package private) void |
cacheEntry(String realm,
CredentialsCacheEntry cacheEntry)
Cache credentials for the specified call and realm |
(package private) void |
clear()
Empty the credentials cache (all authorization challenges) would end up requesting a password from the user. |
(package private) CredentialsCacheEntry |
get(String realm)
Returns the credentials corresponding to the specified realm or null if none could be found. |
(package private) javax.sip.header.AuthorizationHeader |
getCachedAuthorizationHeader(String callid)
Returns an authorization header cached for the specified call id and null if no authorization header has been previously cached for this call. |
(package private) List<String> |
getRealms(String branchID)
Returns the list of realms that branchID has been used to authenticate against. |
(package private) CredentialsCacheEntry |
remove(String realm)
Returns the credentials corresponding to the specified realm or null if none could be found and removes the entry from the cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
CredentialsCache()
| Method Detail |
|---|
void cacheEntry(String realm,
CredentialsCacheEntry cacheEntry)
realm - the realm that the specify credentials apply tocacheEntry - the credentialsCredentialsCacheEntry get(String realm)
realm - the realm that the credentials apply to
List<String> getRealms(String branchID)
branchID - the transaction branchID that we are looking for.
CredentialsCacheEntry remove(String realm)
realm - the realm that the credentials apply to
void clear()
void cacheAuthorizationHeader(String callid,
javax.sip.header.AuthorizationHeader authorization)
callid - the id of the call that the authorization header
belongs to.authorization - the authorization header that we'd like to cache.javax.sip.header.AuthorizationHeader getCachedAuthorizationHeader(String callid)
callid - the call id that we'd like to retrive a cached
authorization header for.
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||