Class IdentityVerification
- java.lang.Object
-
- com.nimbusds.openid.connect.sdk.assurance.IdentityVerification
-
- All Implemented Interfaces:
net.minidev.json.JSONAware
@Immutable public final class IdentityVerification extends Object implements net.minidev.json.JSONAware
Identity verification.Related specifications:
- OpenID Connect for Identity Assurance 1.0, section 4.1.
-
-
Constructor Summary
Constructors Constructor Description IdentityVerification(IdentityTrustFramework trustFramework, DateWithTimeZoneOffset time, String verificationProcess, IdentityEvidence evidence)Creates a new identity verification with a single evidence.IdentityVerification(IdentityTrustFramework trustFramework, DateWithTimeZoneOffset time, String verificationProcess, List<IdentityEvidence> evidence)Creates a new identity verification
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<IdentityEvidence>getEvidence()Returns the identity evidence.IdentityTrustFrameworkgetTrustFramework()Returns the trust framework.StringgetVerificationProcess()Returns the verification process reference.DateWithTimeZoneOffsetgetVerificationTime()Returns the verification timestamp.static IdentityVerificationparse(net.minidev.json.JSONObject jsonObject)Parses an identity verification from the specified JSON object.net.minidev.json.JSONObjecttoJSONObject()Returns a JSON object representation of this identity verification.StringtoJSONString()
-
-
-
Constructor Detail
-
IdentityVerification
public IdentityVerification(IdentityTrustFramework trustFramework, DateWithTimeZoneOffset time, String verificationProcess, IdentityEvidence evidence)
Creates a new identity verification with a single evidence.- Parameters:
trustFramework- The trust framework.time- The verification timestamp if required by the trust framework,nullif not required.verificationProcess- The verification process reference if required by the trust framework,nullif not required.evidence- The identity evidence,nullif not specified.
-
IdentityVerification
public IdentityVerification(IdentityTrustFramework trustFramework, DateWithTimeZoneOffset time, String verificationProcess, List<IdentityEvidence> evidence)
Creates a new identity verification- Parameters:
trustFramework- The trust framework.time- The verification timestamp if required by the trust framework,nullif not required.verificationProcess- The verification process reference if required by the trust framework,nullif not required.evidence- The identity evidences,nullif not specified.
-
-
Method Detail
-
getTrustFramework
public IdentityTrustFramework getTrustFramework()
Returns the trust framework.- Returns:
- The trust framework.
-
getVerificationTime
public DateWithTimeZoneOffset getVerificationTime()
Returns the verification timestamp.- Returns:
- The verification timestamp if required by the trust
framework,
nullif not specified.
-
getVerificationProcess
public String getVerificationProcess()
Returns the verification process reference.- Returns:
- The verification process reference if required by the trust
framework,
nullif not specified.
-
getEvidence
public List<IdentityEvidence> getEvidence()
Returns the identity evidence.- Returns:
- The identity evidence,
nullor empty if not specified.
-
toJSONObject
public net.minidev.json.JSONObject toJSONObject()
Returns a JSON object representation of this identity verification.- Returns:
- The JSON object.
-
toJSONString
public String toJSONString()
- Specified by:
toJSONStringin interfacenet.minidev.json.JSONAware
-
parse
public static IdentityVerification parse(net.minidev.json.JSONObject jsonObject) throws ParseException
Parses an identity verification from the specified JSON object.- Parameters:
jsonObject- The JSON object. Must not benull.- Returns:
- The identity verification.
- Throws:
ParseException- If parsing failed.
-
-