@Deprecated public class DeviceRegistration extends com.yubico.u2f.data.messages.json.JsonSerializable implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static long |
INITIAL_COUNTER_VALUE
Deprecated.
|
| Constructor and Description |
|---|
DeviceRegistration(String keyHandle,
String publicKey,
String attestationCert,
long counter,
boolean compromised)
Deprecated.
|
DeviceRegistration(String keyHandle,
String publicKey,
X509Certificate attestationCert,
long counter)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkAndUpdateCounter(long clientCounter)
Deprecated.
|
static DeviceRegistration |
fromJson(String json)
Deprecated.
|
X509Certificate |
getAttestationCertificate()
Deprecated.
|
long |
getCounter()
Deprecated.
|
String |
getKeyHandle()
Deprecated.
|
String |
getPublicKey()
Deprecated.
|
boolean |
isCompromised()
Deprecated.
|
void |
markCompromised()
Deprecated.
|
String |
toJson()
Deprecated.
|
String |
toJsonWithAttestationCert()
Deprecated.
|
String |
toString()
Deprecated.
|
public static final long INITIAL_COUNTER_VALUE
public DeviceRegistration(String keyHandle, String publicKey, String attestationCert, long counter, boolean compromised)
public DeviceRegistration(String keyHandle, String publicKey, X509Certificate attestationCert, long counter) throws U2fBadInputException
U2fBadInputExceptionpublic String getKeyHandle()
public String getPublicKey()
public X509Certificate getAttestationCertificate() throws U2fBadInputException, CertificateException
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 © 2022 Yubico. All Rights Reserved.