Package io.jans.as.server.model.fido.u2f
Class DeviceRegistration
- java.lang.Object
-
- io.jans.orm.model.base.Entry
-
- io.jans.orm.model.base.BaseEntry
-
- io.jans.as.server.model.fido.u2f.DeviceRegistration
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class DeviceRegistration extends io.jans.orm.model.base.BaseEntry implements java.io.Serializable
U2F Device registration- Author:
- Yuriy Movchan Date: 05/14/2015
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
userInum
-
Constructor Summary
Constructors Constructor Description DeviceRegistration()
DeviceRegistration(java.lang.String userInum, java.lang.String keyHandle, java.lang.String publicKey, java.lang.String attestationCert, long counter, io.jans.as.model.fido.u2f.DeviceRegistrationStatus status, java.lang.String application, java.lang.Integer keyHandleHashCode, java.util.Date creationDate)
DeviceRegistration(java.lang.String userInum, java.lang.String keyHandle, java.lang.String publicKey, java.security.cert.X509Certificate attestationCert, long counter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkAndUpdateCounter(long clientCounter)
void
clearExpiration()
java.lang.String
getApplication()
long
getCounter()
java.util.Date
getCreationDate()
java.lang.String
getDescription()
io.jans.as.model.fido.u2f.protocol.DeviceData
getDeviceData()
java.lang.String
getDeviceNotificationConf()
DeviceRegistrationConfiguration
getDeviceRegistrationConfiguration()
java.lang.String
getDisplayName()
java.util.Date
getExpirationDate()
java.lang.String
getId()
java.lang.String
getKeyHandle()
java.lang.Integer
getKeyHandleHashCode()
java.util.Date
getLastAccessTime()
java.lang.String
getNickname()
io.jans.as.model.fido.u2f.DeviceRegistrationStatus
getStatus()
java.lang.Integer
getTtl()
java.lang.String
getUserInum()
boolean
isCompromised()
boolean
isDeletable()
void
markCompromised()
void
setApplication(java.lang.String application)
void
setCounter(long counter)
void
setCreationDate(java.util.Date creationDate)
void
setDeletable(boolean deletable)
void
setDescription(java.lang.String description)
void
setDeviceData(io.jans.as.model.fido.u2f.protocol.DeviceData deviceData)
void
setDeviceNotificationConf(java.lang.String deviceNotificationConf)
void
setDeviceRegistrationConfiguration(DeviceRegistrationConfiguration deviceRegistrationConfiguration)
void
setDisplayName(java.lang.String displayName)
void
setExpiration()
void
setExpirationDate(java.util.Date expirationDate)
void
setId(java.lang.String id)
void
setKeyHandle(java.lang.String keyHandle)
void
setKeyHandleHashCode(java.lang.Integer keyHandleHashCode)
void
setLastAccessTime(java.util.Date lastAccessTime)
void
setNickname(java.lang.String nickname)
void
setStatus(io.jans.as.model.fido.u2f.DeviceRegistrationStatus status)
void
setTtl(java.lang.Integer ttl)
void
setUserInum(java.lang.String userInum)
java.lang.String
toString()
-
-
-
Constructor Detail
-
DeviceRegistration
public DeviceRegistration()
-
DeviceRegistration
public DeviceRegistration(java.lang.String userInum, java.lang.String keyHandle, java.lang.String publicKey, java.lang.String attestationCert, long counter, io.jans.as.model.fido.u2f.DeviceRegistrationStatus status, java.lang.String application, java.lang.Integer keyHandleHashCode, java.util.Date creationDate)
-
DeviceRegistration
public DeviceRegistration(java.lang.String userInum, java.lang.String keyHandle, java.lang.String publicKey, java.security.cert.X509Certificate attestationCert, long counter) throws io.jans.as.model.fido.u2f.exception.BadInputException
- Throws:
io.jans.as.model.fido.u2f.exception.BadInputException
-
-
Method Detail
-
getId
public java.lang.String getId()
-
setId
public void setId(java.lang.String id)
-
getDisplayName
public java.lang.String getDisplayName()
-
setDisplayName
public void setDisplayName(java.lang.String displayName)
-
getDescription
public java.lang.String getDescription()
-
setDescription
public void setDescription(java.lang.String description)
-
getNickname
public java.lang.String getNickname()
-
setNickname
public void setNickname(java.lang.String nickname)
-
getUserInum
public java.lang.String getUserInum()
-
setUserInum
public void setUserInum(java.lang.String userInum)
-
getDeviceRegistrationConfiguration
public DeviceRegistrationConfiguration getDeviceRegistrationConfiguration()
-
setDeviceRegistrationConfiguration
public void setDeviceRegistrationConfiguration(DeviceRegistrationConfiguration deviceRegistrationConfiguration)
-
getDeviceNotificationConf
public java.lang.String getDeviceNotificationConf()
-
setDeviceNotificationConf
public void setDeviceNotificationConf(java.lang.String deviceNotificationConf)
-
getCounter
public long getCounter()
-
setCounter
public void setCounter(long counter)
-
getStatus
public io.jans.as.model.fido.u2f.DeviceRegistrationStatus getStatus()
-
setStatus
public void setStatus(io.jans.as.model.fido.u2f.DeviceRegistrationStatus status)
-
getApplication
public java.lang.String getApplication()
-
setApplication
public void setApplication(java.lang.String application)
-
getKeyHandle
public java.lang.String getKeyHandle()
-
setKeyHandle
public void setKeyHandle(java.lang.String keyHandle)
-
getKeyHandleHashCode
public java.lang.Integer getKeyHandleHashCode()
-
setKeyHandleHashCode
public void setKeyHandleHashCode(java.lang.Integer keyHandleHashCode)
-
getCreationDate
public java.util.Date getCreationDate()
-
setCreationDate
public void setCreationDate(java.util.Date creationDate)
-
clearExpiration
public void clearExpiration()
-
setExpiration
public void setExpiration()
-
getTtl
public java.lang.Integer getTtl()
-
setTtl
public void setTtl(java.lang.Integer ttl)
-
getDeviceData
public io.jans.as.model.fido.u2f.protocol.DeviceData getDeviceData()
-
setDeviceData
public void setDeviceData(io.jans.as.model.fido.u2f.protocol.DeviceData deviceData)
-
getLastAccessTime
public java.util.Date getLastAccessTime()
-
setLastAccessTime
public void setLastAccessTime(java.util.Date lastAccessTime)
-
isCompromised
public boolean isCompromised()
-
markCompromised
public void markCompromised()
-
checkAndUpdateCounter
public void checkAndUpdateCounter(long clientCounter) throws InvalidDeviceCounterException
- Throws:
InvalidDeviceCounterException
-
getExpirationDate
public java.util.Date getExpirationDate()
-
setExpirationDate
public void setExpirationDate(java.util.Date expirationDate)
-
isDeletable
public boolean isDeletable()
-
setDeletable
public void setDeletable(boolean deletable)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classio.jans.orm.model.base.BaseEntry
-
-