Package overit.geocall.cxf
Class IdentityCache
java.lang.Object
overit.geocall.cxf.IdentityCache
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classprotected static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<String, IdentityCache.CachedIdentity> protected longprotected IdentityCache.NullMap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Identityidentificate(String username, String password) Stores and caches new Identitiesprotected IdentityloadSystemUser(String username) protected Identity
-
Field Details
-
NULL_MAP
-
_identities
-
_identityTtl
protected long _identityTtl
-
-
Constructor Details
-
IdentityCache
public IdentityCache(long identityTTl)
-
-
Method Details
-
identificate
protected Identity identificate(String username, String password) throws DAValidateException, DAException Stores and caches new Identities- Parameters:
username- the name of the identitypassword- the passwortd of the identity. It could be null for Sistem User identities- Returns:
- the chached identity
- Throws:
DAValidateException- If the validation of the data failsDAException- If the data access phase fails
-
loadSystemUser
- Throws:
DAValidateExceptionDAException
-
loadUser
- Throws:
DAValidateExceptionDAException
-