Package com.inrupt.client.auth
Class Credential
java.lang.Object
com.inrupt.client.auth.Credential
A credential that can be used with Solid resource servers.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the expiration time for this credential.Get the issuer for this credential.Get the principal, if available.Get the thumbprint for an associated proof, if present.Get the scheme for this credential.getToken()
Get the token for this credential.
-
Constructor Details
-
Credential
public Credential(String scheme, URI issuer, String token, Instant expiration, URI principal, String jkt) Create a credential.- Parameters:
scheme
- the schemeissuer
- the issuertoken
- the tokenexpiration
- the time after which the credential is no longer validprincipal
- the identifier for the principal, may benull
jkt
- the json key thumbprint, may benull
-
-
Method Details
-
getScheme
Get the scheme for this credential.- Returns:
- the scheme
-
getPrincipal
Get the principal, if available.- Returns:
- the principal
-
getIssuer
Get the issuer for this credential.- Returns:
- the issuer
-
getToken
Get the token for this credential.- Returns:
- the raw token
-
getExpiration
Get the expiration time for this credential.- Returns:
- the expiration time
-
getProofThumbprint
Get the thumbprint for an associated proof, if present.- Returns:
- the proof thumbprint
-