Package io.milton.ldap
Class MemoryUserSessionFactory.MemoryUser
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,String>
io.milton.ldap.MapContact
io.milton.ldap.MemoryUserSessionFactory.MemoryUser
- All Implemented Interfaces:
LdapPrincipal,LdapContact,PropFindableResource,Resource,Serializable,Cloneable,Map<String,String>
- Enclosing class:
- MemoryUserSessionFactory
public static class MemoryUserSessionFactory.MemoryUser
extends MapContact
implements LdapPrincipal, LdapContact
The BeanPropertyResource annotation makes the bean properties on this class
available to milton property resolution. The value is the namespace that
these properties will be mapped to.
Note that the LDAP support will, by default, map properties to the "ldap"
namespace, which must correspond to the namespace used here
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticate(String user, String password) booleanauthorise(Request request, Request.Method method, Auth auth) checkRedirect(Request request) getEtag()getMail()getName()getRealm()searchContacts(Condition condition, int maxCount) Search for contacts in this user's private contact list.final voidsetGivenName(String givenName) voidvoidsetPassword(String password) final voidsetSurName(String surname) Methods inherited from class io.milton.ldap.MapContact
getUniqueIdMethods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.milton.resource.Resource
getUniqueId
-
Constructor Details
-
MemoryUser
-
-
Method Details
-
searchContacts
Description copied from interface:LdapPrincipalSearch for contacts in this user's private contact list. Generally these contacts will not be User accounts- Specified by:
searchContactsin interfaceLdapPrincipal- Returns:
-
getPassword
-
setPassword
-
getEtag
-
getGivenName
-
setGivenName
-
getSurName
-
setSurName
-
getMail
-
setMail
-
getCommonName
-
getCreateDate
- Specified by:
getCreateDatein interfacePropFindableResource- Overrides:
getCreateDatein classMapContact
-
getName
- Specified by:
getNamein interfaceResource- Overrides:
getNamein classMapContact
-
authenticate
- Specified by:
authenticatein interfaceResource- Overrides:
authenticatein classMapContact
-
authorise
- Specified by:
authorisein interfaceResource- Overrides:
authorisein classMapContact
-
getRealm
- Specified by:
getRealmin interfaceResource- Overrides:
getRealmin classMapContact
-
getModifiedDate
- Specified by:
getModifiedDatein interfaceResource- Overrides:
getModifiedDatein classMapContact
-
checkRedirect
- Specified by:
checkRedirectin interfaceResource- Overrides:
checkRedirectin classMapContact
-