public class DeviceRegistration extends com.yubico.u2f.data.messages.json.JsonSerializable implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static long |
INITIAL_COUNTER_VALUE |
| Constructor and Description |
|---|
DeviceRegistration(String keyHandle,
String publicKey,
X509Certificate attestationCert,
long counter) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkAndUpdateCounter(long clientCounter) |
boolean |
equals(Object obj) |
static DeviceRegistration |
fromJson(String json) |
X509Certificate |
getAttestationCertificate() |
long |
getCounter() |
String |
getKeyHandle() |
String |
getPublicKey() |
int |
hashCode() |
boolean |
isCompromised() |
void |
markCompromised() |
String |
toJson() |
String |
toJsonWithAttestationCert() |
String |
toString() |
public static final long INITIAL_COUNTER_VALUE
public DeviceRegistration(String keyHandle, String publicKey, X509Certificate attestationCert, long counter) throws U2fBadInputException
U2fBadInputExceptionpublic String getKeyHandle()
public String getPublicKey()
public X509Certificate getAttestationCertificate() throws CertificateException, NoSuchFieldException
public long getCounter()
public boolean isCompromised()
public void markCompromised()
public String toString()
toString in class com.yubico.u2f.data.messages.json.JsonSerializablepublic static DeviceRegistration fromJson(String json) throws U2fBadInputException
U2fBadInputExceptionpublic String toJson()
toJson in class com.yubico.u2f.data.messages.json.JsonSerializablepublic String toJsonWithAttestationCert()
public void checkAndUpdateCounter(long clientCounter)
throws InvalidDeviceCounterException
InvalidDeviceCounterExceptionCopyright © 2015 Yubico. All Rights Reserved.