Skip to content

Commit

Permalink
Add "hybrid" AuthenticatorTransport
Browse files Browse the repository at this point in the history
  • Loading branch information
ynojima committed Aug 20, 2022
1 parent 77be930 commit 8b24c2a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ public class AuthenticatorTransport implements Serializable {
*/
public static final AuthenticatorTransport BLE = new AuthenticatorTransport("ble");

/**
* Indicates the respective authenticator can be contacted using a combination of (often separate) data-transport
* and proximity mechanisms. This supports, for example, authentication on a desktop computer using a smartphone.
*/
public static final AuthenticatorTransport HYBRID = new AuthenticatorTransport("hybrid");

/**
* Indicates the respective authenticator is contacted using a client device-specific transport.
* These authenticators are not removable from the client device.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ void create_test() {
() -> assertThat(AuthenticatorTransport.create("usb")).isEqualTo(AuthenticatorTransport.USB),
() -> assertThat(AuthenticatorTransport.create("nfc")).isEqualTo(AuthenticatorTransport.NFC),
() -> assertThat(AuthenticatorTransport.create("ble")).isEqualTo(AuthenticatorTransport.BLE),
() -> assertThat(AuthenticatorTransport.create("hybrid")).isEqualTo(AuthenticatorTransport.HYBRID),
() -> assertThat(AuthenticatorTransport.create("internal")).isEqualTo(AuthenticatorTransport.INTERNAL)
);
}
Expand Down

0 comments on commit 8b24c2a

Please sign in to comment.