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

com.intel.analytics.bigdl.ppml.attestation.verify-attestation-service.sh Maven / Gradle / Ivy

The newest version!
#!/bin/bash
set -x

export ATTESTATION_URL=your_attestation_url
export ATTESTATION_TYPE=your_attestation_service_type
export APP_ID=your_app_id
export API_KEY=your_api_key
export CHALLENGE=your_challenge_string
export SPARK_HOME=your_spark_home
export BIGDL_PPML_JAR=your_bigdl_ppml_jar

if [ "$ATTESTATION_URL" = "your_attestation_url" ]; then
    echo "[ERROR] ATTESTATION_URL is not set!"
    echo "[INFO] PPML Application Exit!"
    exit 1
fi
if [ "$ATTESTATION_TYPE" = "your_attestation_service_type" ]; then
    ATTESTATION_TYPE="EHSMAttestationService"
fi
if [ "$APP_ID" = "your_app_id" ]; then
    echo "[ERROR] APP_ID is not set!"
    echo "[INFO] PPML Application Exit!"
    exit 1
fi
if [ "$API_KEY" = "your_api_key" ]; then
    echo "[ERROR] API_KEY is not set!"
    echo "[INFO] PPML Application Exit!"
    exit 1
fi
if [ "$CHALLENGE" = "your_challenge_string" ]; then
    echo "[ERROR] CHALLENGE is not set!"
    echo "[INFO] PPML Application Exit!"
    exit 1
fi
if [ "$SPARK_HOME" = "your_spark_home" ]; then
    echo "[ERROR] SPARK_HOME is not set!"
    echo "[INFO] PPML Application Exit!"
    exit 1
fi
if [ "$BIGDL_PPML_JAR" = "your_bigdl_ppml_jar" ]; then
    echo "[ERROR] BIGDL_PPML_JAR is not set!"
    echo "[INFO] PPML Application Exit!"
    exit 1
fi

JARS="$SPARK_HOME/jars/*:$SPARK_HOME/examples/jars/*:$BIGDL_PPML_JAR"

java -cp $JARS com.intel.analytics.bigdl.ppml.attestation.VerificationCLI -i $APP_ID -k $API_KEY -c $CHALLENGE -u $ATTESTATION_URL -t $ATTESTATION_TYPE




© 2015 - 2025 Weber Informatics LLC | Privacy Policy