Skip to content

Commit

Permalink
add javadoc to extension classes
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamVe committed Dec 10, 2024
1 parent 70ea7d0 commit 117e9f3
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@

import javax.annotation.Nullable;

/**
* Implements the Credential Blob (credBlob) CTAP2 extension.
* @see <a href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-errata-20220621.html#sctn-credBlob-extension">Credential Blob (credBlob)</a>
*/
public class CredBlobExtension extends Extension {

public CredBlobExtension() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@

import javax.annotation.Nullable;

/**
* Implements the Credential Properties (credProps) WebAuthn extension.
* @see <a href="https://www.w3.org/TR/webauthn-3/#sctn-authenticator-credential-properties-extension">Credential Properties Extension (credProps)</a>
*/
public class CredPropsExtension extends Extension {

public CredPropsExtension() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@

import javax.annotation.Nullable;

/**
* Implements the Credential Protection CTAP2 extension.
* @see <a href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-errata-20220621.html#sctn-credProtect-extension">Credential Protection (credProtect)</a>
*/
public class CredProtectExtension extends Extension {

private static final String POLICY = "credentialProtectionPolicy";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@

import javax.annotation.Nullable;

/**
* Base class for FIDO2 extensions.
* @see <a href="https://www.w3.org/TR/webauthn-3/#sctn-extensions">Webauthn Extensions</a>
*/
public abstract class Extension {
protected final String name;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@

import javax.annotation.Nullable;

/**
* Implements the Large Blob storage (largeBlob) WebAuthn extension.
* @see <a href="https://www.w3.org/TR/webauthn-3/#sctn-large-blob-extension">Large blob extension</a>
* @see <a href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-errata-20220621.html#sctn-largeBlobKey-extension">Large Blob Key (largeBlobKey)</a>
*/
public class LargeBlobExtension extends Extension {
private static final String LARGE_BLOB_KEY = "largeBlobKey";
private static final String LARGE_BLOB = "largeBlob";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@

import javax.annotation.Nullable;

/**
* Implements the Minimum PIN Length (minPinLength) CTAP2 extension.
* @see <a href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-errata-20220621.html#sctn-minpinlength-extension">Minimum PIN Length Extension (minPinLength)</a>
*/
public class MinPinLengthExtension extends Extension {

public MinPinLengthExtension() {
Expand Down

0 comments on commit 117e9f3

Please sign in to comment.