Skip to content

Commit

Permalink
Add defaults to keylessverificationrequest
Browse files Browse the repository at this point in the history
Signed-off-by: Appu Goundan <[email protected]>
  • Loading branch information
loosebazooka committed Sep 19, 2023
1 parent 5d82c81 commit fe15345
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,19 @@

import java.util.List;
import java.util.Map;
import org.immutables.value.Value;
import org.immutables.value.Value.Default;
import org.immutables.value.Value.Immutable;

@Value.Immutable
@Immutable
public interface KeylessVerificationRequest {
KeylessSignature getKeylessSignature();

VerificationOptions getVerificationOptions();
@Default
default VerificationOptions getVerificationOptions() {
return VerificationOptions.builder().isOnline(true).build();
}

@Value.Immutable
@Immutable
interface VerificationOptions {
boolean isOnline();

Expand All @@ -36,7 +40,7 @@ static ImmutableVerificationOptions.Builder builder() {
}
}

@Value.Immutable
@Immutable
interface CertificateIdentity {
String getIssuer();

Expand Down

0 comments on commit fe15345

Please sign in to comment.