Class DeviceRepresentation
- java.lang.Object
-
- org.keycloak.representations.account.DeviceRepresentation
-
public class DeviceRepresentation extends Object
- Author:
- Pedro Igor
-
-
Constructor Summary
Constructors Constructor Description DeviceRepresentation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSession(SessionRepresentation sessionRep)
String
getBrowser()
Boolean
getCurrent()
String
getDevice()
String
getId()
String
getIpAddress()
int
getLastAccess()
String
getOs()
String
getOsVersion()
List<SessionRepresentation>
getSessions()
boolean
isMobile()
void
setBrowser(String browser)
void
setBrowser(String browser, String version)
void
setCurrent(Boolean current)
void
setDevice(String device)
void
setId(String id)
void
setIpAddress(String ip)
void
setLastAccess(int lastAccess)
void
setMobile(boolean mobile)
void
setOs(String os)
void
setOsVersion(String osVersion)
static DeviceRepresentation
unknown()
-
-
-
Field Detail
-
UNKNOWN
public static final String UNKNOWN
- See Also:
- Constant Field Values
-
-
Method Detail
-
unknown
public static DeviceRepresentation unknown()
-
getId
public String getId()
-
setId
public void setId(String id)
-
getIpAddress
public String getIpAddress()
-
setIpAddress
public void setIpAddress(String ip)
-
getOs
public String getOs()
-
setOs
public void setOs(String os)
-
getOsVersion
public String getOsVersion()
-
setOsVersion
public void setOsVersion(String osVersion)
-
getBrowser
public String getBrowser()
-
setBrowser
public void setBrowser(String browser)
-
getDevice
public String getDevice()
-
setDevice
public void setDevice(String device)
-
getLastAccess
public int getLastAccess()
-
setLastAccess
public void setLastAccess(int lastAccess)
-
getCurrent
public Boolean getCurrent()
-
setCurrent
public void setCurrent(Boolean current)
-
addSession
public void addSession(SessionRepresentation sessionRep)
-
getSessions
public List<SessionRepresentation> getSessions()
-
setMobile
public void setMobile(boolean mobile)
-
isMobile
public boolean isMobile()
-
-