io.hanko.sdk.webauthn.api.FinalizationResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk Show documentation
Show all versions of java-sdk Show documentation
Java SDK for accessing the Hanko Authentication API
The newest version!
package io.hanko.sdk.webauthn.api;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Response to a registration, authentication or transaction finalization.
*/
public class FinalizationResponse {
private final WebAuthnCredential credential;
/**
* Construct a FinalizationResponse
* @param credential the created or existing {@link WebAuthnCredential}
*/
@JsonCreator
public FinalizationResponse(@JsonProperty("credential") WebAuthnCredential credential) {
this.credential = credential;
}
/**
* Get the {@link WebAuthnCredential}
* @return a {@link WebAuthnCredential}
*/
public WebAuthnCredential getCredential() {
return credential;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy