Package com.yubico.fido.metadata
Class AAGUID
- java.lang.Object
-
- com.yubico.fido.metadata.AAGUID
-
public final class AAGUID extends java.lang.ObjectSome authenticators have an AAGUID, which is a 128-bit identifier that indicates the type (e.g. make and model) of the authenticator. The AAGUID MUST be chosen by the manufacturer to be identical across all substantially identical authenticators made by that manufacturer, and different (with probability 1-2-128 or greater) from the AAGUIDs of all other types of authenticators.The AAGUID is represented as a string (e.g. "7a98c250-6808-11cf-b73b-00aa00b677a7") consisting of 5 hex strings separated by a dash ("-"), see [RFC4122].
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteArrayasBytes()The 16-byte binary representation of this AAGUID, for example7a98c250680811cfb73b00aa00b677a7when hex-encoded.java.lang.StringasGuidString()The 36-character string representation of this AAGUID, for example"7a98c250-6808-11cf-b73b-00aa00b677a7".java.lang.StringasHexString()The 32-character hexadecimal representation of this AAGUID, for example"7a98c250680811cfb73b00aa00b677a7".booleanequals(java.lang.Object o)inthashCode()booleanisZero()trueif and only if thisAAGUIDconsists of all zeroes.java.lang.StringtoString()
-
-
-
Method Detail
-
asBytes
public ByteArray asBytes()
The 16-byte binary representation of this AAGUID, for example7a98c250680811cfb73b00aa00b677a7when hex-encoded.This is the inverse of
AAGUID(ByteArray).
-
asHexString
public java.lang.String asHexString()
The 32-character hexadecimal representation of this AAGUID, for example"7a98c250680811cfb73b00aa00b677a7".
-
asGuidString
public java.lang.String asGuidString()
The 36-character string representation of this AAGUID, for example"7a98c250-6808-11cf-b73b-00aa00b677a7".
-
isZero
public boolean isZero()
trueif and only if thisAAGUIDconsists of all zeroes. This typically indicates that an authenticator has no AAGUID, or that the AAGUID has been redacted.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-