Class VerificationMethod
- java.lang.Object
-
- com.nimbusds.openid.connect.sdk.assurance.evidences.VerificationMethod
-
@Immutable public final class VerificationMethod extends Object
Verification method establishing a given user owns a set of provided claims.Related specifications:
- OpenID Connect for Identity Assurance 1.0, section 5.1.1.
-
-
Constructor Summary
Constructors Constructor Description VerificationMethod(VerificationMethodType type, Policy policy, Procedure procedure, Status status)
Creates a new verification method.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Policy
getPolicy()
Returns the policy.Procedure
getProcedure()
Returns the procedure.Status
getStatus()
Returns the status.VerificationMethodType
getType()
Returns the type of this verification method.int
hashCode()
static VerificationMethod
parse(net.minidev.json.JSONObject jsonObject)
Parses a verification method from the specified JSON object.net.minidev.json.JSONObject
toJSONObject()
Returns a JSON object representation of this verification method.
-
-
-
Constructor Detail
-
VerificationMethod
public VerificationMethod(VerificationMethodType type, Policy policy, Procedure procedure, Status status)
Creates a new verification method.- Parameters:
type
- The type. Must not benull
.policy
- The policy,null
if not specified.procedure
- The procedure,null
if not specified.status
- The status,null
if not specified.
-
-
Method Detail
-
getType
public VerificationMethodType getType()
Returns the type of this verification method.- Returns:
- The type.
-
toJSONObject
public net.minidev.json.JSONObject toJSONObject()
Returns a JSON object representation of this verification method.- Returns:
- The JSON object.
-
parse
public static VerificationMethod parse(net.minidev.json.JSONObject jsonObject) throws ParseException
Parses a verification method from the specified JSON object.- Parameters:
jsonObject
- The JSON object. Must not benull
.- Returns:
- The verification method.
- Throws:
ParseException
- If parsing failed.
-
getPolicy
public Policy getPolicy()
Returns the policy.- Returns:
- The policy,
null
if not specified.
-
getProcedure
public Procedure getProcedure()
Returns the procedure.- Returns:
- The procedure,
null
if not specified.
-
getStatus
public Status getStatus()
Returns the status.- Returns:
- The status,
null
if not specified.
-
-