public final class PolicyResult extends Object
Constructor and Description |
---|
PolicyResult() |
Modifier and Type | Method and Description |
---|---|
String |
getPolicy()
Get the policy property: A JSON Web Token containing a StoredAttestationPolicy object with the attestation
policy.
|
PolicyModification |
getPolicyResolution()
Get the policyResolution property: The result of the operation.
|
JsonWebKey |
getPolicySigner()
Get the policySigner property: The certificate used to sign the policy object, if specified.
|
byte[] |
getPolicyTokenHash()
Get the policyTokenHash property: The SHA256 hash of the policy object modified.
|
PolicyResult |
setPolicy(String policy)
Set the policy property: A JSON Web Token containing a StoredAttestationPolicy object with the attestation
policy.
|
PolicyResult |
setPolicyResolution(PolicyModification policyResolution)
Set the policyResolution property: The result of the operation.
|
PolicyResult |
setPolicySigner(JsonWebKey policySigner)
Set the policySigner property: The certificate used to sign the policy object, if specified.
|
PolicyResult |
setPolicyTokenHash(byte[] policyTokenHash)
Set the policyTokenHash property: The SHA256 hash of the policy object modified.
|
void |
validate()
Validates the instance.
|
public PolicyModification getPolicyResolution()
public PolicyResult setPolicyResolution(PolicyModification policyResolution)
policyResolution
- the policyResolution value to set.public byte[] getPolicyTokenHash()
public PolicyResult setPolicyTokenHash(byte[] policyTokenHash)
policyTokenHash
- the policyTokenHash value to set.public JsonWebKey getPolicySigner()
public PolicyResult setPolicySigner(JsonWebKey policySigner)
policySigner
- the policySigner value to set.public String getPolicy()
public PolicyResult setPolicy(String policy)
policy
- the policy value to set.public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.