All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.uid2.shared.secure.TrustedCoreAttestationService Maven / Gradle / Ivy

package com.uid2.shared.secure;

import io.vertx.core.AsyncResult;
import io.vertx.core.Future;
import io.vertx.core.Handler;

import java.util.Collection;
import java.util.Collections;

public class TrustedCoreAttestationService implements ICoreAttestationService {
    public TrustedCoreAttestationService() {}

    @Override
    public void attest(byte[] attestationRequest, byte[] publicKey, Handler> handler) {
        handler.handle(Future.succeededFuture(new AttestationResult(publicKey, "Trusted")));
    }

    @Override
    public void registerEnclave(String encodedIdentifier) throws AttestationException {}
    @Override
    public void unregisterEnclave(String encodedIdentifier) throws AttestationException {}
    @Override
    public Collection getEnclaveAllowlist() { return Collections.emptyList(); }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy