class CredentialsCache
extends java.lang.Object
Constructor and Description |
---|
CredentialsCache() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
cacheAuthorizationHeader(java.lang.String callid,
javax.sip.header.AuthorizationHeader authorization)
Cache the bindings of call-id and authorization header.
|
(package private) void |
cacheEntry(java.lang.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(java.lang.String realm)
Returns the credentials corresponding to the specified realm
or null if none could be found.
|
(package private) javax.sip.header.AuthorizationHeader |
getCachedAuthorizationHeader(java.lang.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) java.util.List<java.lang.String> |
getRealms(java.lang.String branchID)
Returns the list of realms that branchID has been used to
authenticate against.
|
(package private) CredentialsCacheEntry |
remove(java.lang.String realm)
Returns the credentials corresponding to the specified realm
or null if none could be found and removes the entry from the cache.
|
void cacheEntry(java.lang.String realm, CredentialsCacheEntry cacheEntry)
realm
- the realm that the specify credentials apply tocacheEntry
- the credentialsCredentialsCacheEntry get(java.lang.String realm)
realm
- the realm that the credentials apply tojava.util.List<java.lang.String> getRealms(java.lang.String branchID)
branchID
- the transaction branchID that we are looking for.CredentialsCacheEntry remove(java.lang.String realm)
realm
- the realm that the credentials apply tovoid clear()
void cacheAuthorizationHeader(java.lang.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(java.lang.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.
Distributable under Apache license.