Class AbstractUserFactory
- java.lang.Object
-
- uk.gov.gchq.gaffer.rest.factory.spring.AbstractUserFactory
-
- All Implemented Interfaces:
UserFactory
- Direct Known Subclasses:
UnknownUserFactory
public class AbstractUserFactory extends Object implements UserFactory
The base abstractUserFactory
implementation for the spring rest API. Allows setting the http headers for use in authorisation.
-
-
Constructor Summary
Constructors Constructor Description AbstractUserFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description User
createUser()
Create a newUser
object.void
setHttpHeaders(org.springframework.http.HttpHeaders httpHeaders)
Allow setting theHttpHeaders
the user factory may use to carry out authorisation.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface uk.gov.gchq.gaffer.rest.factory.UserFactory
createContext
-
-
-
-
Method Detail
-
createUser
public User createUser()
Description copied from interface:UserFactory
Create a newUser
object.- Specified by:
createUser
in interfaceUserFactory
- Returns:
- a new user
-
setHttpHeaders
public void setHttpHeaders(org.springframework.http.HttpHeaders httpHeaders)
Allow setting theHttpHeaders
the user factory may use to carry out authorisation.- Parameters:
httpHeaders
- the headers
-
-