Class BasicExpiringJWKCredential
java.lang.Object
org.opensaml.security.credential.AbstractCredential
org.opensaml.security.credential.BasicCredential
net.shibboleth.oidc.security.credential.BasicJWKCredential
net.shibboleth.oidc.security.credential.BasicExpiringJWKCredential
- All Implemented Interfaces:
ExpiringJWKCredential,JWKCredential,Credential,MutableCredential
Basic implementation of an ExpiringJWKCredential.
- Since:
- 2.2.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DurationWhen the credential expires in seconds since 1970-01-01T0:0:0Z. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTime at which the client_secret will expire or 0 if it will not expire.voidsetCredentialExpiresAt(Duration expiresAt) Set the expiry.Methods inherited from class net.shibboleth.oidc.security.credential.BasicJWKCredential
getAlgorithm, getKid, setAlgorithm, setKidMethods inherited from class org.opensaml.security.credential.BasicCredential
getCredentialType, setEntityId, setPrivateKey, setPublicKey, setSecretKey, setUsageTypeMethods inherited from class org.opensaml.security.credential.AbstractCredential
getCredentialContextSet, getEntityId, getKeyNames, getPrivateKey, getPublicKey, getSecretKey, getUsageTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensaml.security.credential.Credential
getCredentialContextSet, getCredentialType, getEntityId, getKeyNames, getPrivateKey, getPublicKey, getSecretKey, getUsageTypeMethods inherited from interface net.shibboleth.oidc.security.credential.JWKCredential
getAlgorithm, getKid
-
Field Details
-
credentialExpiresAt
When the credential expires in seconds since 1970-01-01T0:0:0Z. 0 seconds represents no expiry.
-
-
Constructor Details
-
BasicExpiringJWKCredential
public BasicExpiringJWKCredential()
-
-
Method Details
-
getCredentialExpiresAt
Time at which the client_secret will expire or 0 if it will not expire. Its value represents the number of seconds from 1970-01-01T0:0:0Z.- Specified by:
getCredentialExpiresAtin interfaceExpiringJWKCredential- Returns:
- the expiry duration
-
setCredentialExpiresAt
Set the expiry.- Parameters:
expiresAt- the expiry
-