Class AAGUID


  • public final class AAGUID
    extends java.lang.Object
    Some 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].

    See Also:
    FIDO Metadata Statement ยง3.1. Authenticator Attestation GUID (AAGUID) typedef, RFC 4122: A Universally Unique IDentifier (UUID) URN Namespace
    • Constructor Summary

      Constructors 
      Constructor Description
      AAGUID​(com.yubico.webauthn.data.ByteArray value)
      Construct an AAGUID from its raw binary representation.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.yubico.webauthn.data.ByteArray asBytes()
      The 16-byte binary representation of this AAGUID, for example 7a98c250680811cfb73b00aa00b677a7 when hex-encoded.
      java.lang.String asGuidString()
      The 36-character string representation of this AAGUID, for example "7a98c250-6808-11cf-b73b-00aa00b677a7".
      java.lang.String asHexString()
      The 32-character hexadecimal representation of this AAGUID, for example "7a98c250680811cfb73b00aa00b677a7".
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      boolean isZero()
      true if and only if this AAGUID consists of all zeroes.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AAGUID

        public AAGUID​(com.yubico.webauthn.data.ByteArray value)
        Construct an AAGUID from its raw binary representation.

        This is the inverse of asBytes().

        Parameters:
        value - a ByteArray of length exactly 16.
    • Method Detail

      • asBytes

        public com.yubico.webauthn.data.ByteArray asBytes()
        The 16-byte binary representation of this AAGUID, for example 7a98c250680811cfb73b00aa00b677a7 when 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()
        true if and only if this AAGUID consists 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:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object