Package com.authlete.jaxrs
Class BaseCredentialNonceEndpoint
- java.lang.Object
-
- com.authlete.jaxrs.BaseEndpoint
-
- com.authlete.jaxrs.BaseCredentialNonceEndpoint
-
public class BaseCredentialNonceEndpoint extends BaseEndpoint
A base class for the nonce endpoint of the credential issuer defined in OpenID for Verifiable Credential Issuance 1.0.- Since:
- 2.90, Authlete 3.0.22
- See Also:
- OpenID for Verifiable Credential Issuance
-
-
Constructor Summary
Constructors Constructor Description BaseCredentialNonceEndpoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Responsehandle(com.authlete.common.api.AuthleteApi api)Handle a request to the nonce endpoint.javax.ws.rs.core.Responsehandle(com.authlete.common.api.AuthleteApi api, com.authlete.common.api.Options options)Handle a request to the nonce endpoint.javax.ws.rs.core.Responsehandle(com.authlete.common.api.AuthleteApi api, com.authlete.common.dto.CredentialNonceRequest request)Handle a request to the nonce endpoint.javax.ws.rs.core.Responsehandle(com.authlete.common.api.AuthleteApi api, com.authlete.common.dto.CredentialNonceRequest request, com.authlete.common.api.Options options)Handle a request to the nonce endpoint.-
Methods inherited from class com.authlete.jaxrs.BaseEndpoint
extractClientCertificate, extractClientCertificateChain, extractHeadersAsPairs, onError, takeAttribute
-
-
-
-
Method Detail
-
handle
public javax.ws.rs.core.Response handle(com.authlete.common.api.AuthleteApi api)
Handle a request to the nonce endpoint. This method is an alias ofhandle(api, (Options)null).- Parameters:
api- An implementation ofAuthleteApi.- Returns:
- A response that should be returned from the nonce endpoint.
-
handle
public javax.ws.rs.core.Response handle(com.authlete.common.api.AuthleteApi api, com.authlete.common.api.Options options)Handle a request to the nonce endpoint. This method is an alias of thehandle(api, new CredentialNonceRequest(), options)method.- Parameters:
api- An implementation ofAuthleteApi.options- The request options for the/api/<service-id>/vci/nonceAPI.- Returns:
- A response that should be returned from the nonce endpoint.
-
handle
public javax.ws.rs.core.Response handle(com.authlete.common.api.AuthleteApi api, com.authlete.common.dto.CredentialNonceRequest request)Handle a request to the nonce endpoint. This method is an alias ofhandle(api, request, null).- Parameters:
api- An implementation ofAuthleteApi.request- The request parameters for Authlete's/api/<service-id>/vci/nonceAPI.- Returns:
- A response that should be returned from the nonce endpoint.
-
handle
public javax.ws.rs.core.Response handle(com.authlete.common.api.AuthleteApi api, com.authlete.common.dto.CredentialNonceRequest request, com.authlete.common.api.Options options)Handle a request to the nonce endpoint.This method internally creates a
CredentialNonceRequestHandlerinstance and calls itshandle()method. Then, this method uses the value returned from the handler's method as a response from this method.When the handler's method raises a
WebApplicationException, this method callsonError()method with the exception. The default implementation ofonError()does nothing. You can override the method as necessary. After callingonError()method, this method callsgetResponse()method of the exception and uses the returned value as a response from this method.- Parameters:
api- An implementation ofAuthleteApi.request- The request parameters for Authlete's/api/<service-id>/vci/nonceAPI.options- The request options for the/api/<service-id>/vci/nonceAPI.- Returns:
- A response that should be returned from the nonce endpoint.
-
-