Class OID4VCAuthorizationDetailsProcessor
java.lang.Object
org.keycloak.protocol.oid4vc.issuance.OID4VCAuthorizationDetailsProcessor
- All Implemented Interfaces:
AuthorizationDetailsProcessor,Provider
public class OID4VCAuthorizationDetailsProcessor
extends Object
implements AuthorizationDetailsProcessor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()handleMissingAuthorizationDetails(UserSessionModel userSession, ClientSessionContext clientSessionCtx) Method is invoked in cases when authorization_details parameter is missing in the request.process(UserSessionModel userSession, ClientSessionContext clientSessionCtx, String authorizationDetailsParameter) Processes the authorization_details parameter and returns a response if this processor is able to handle the given authorization_details parameter.
-
Field Details
-
OPENID_CREDENTIAL_TYPE
- See Also:
-
-
Constructor Details
-
OID4VCAuthorizationDetailsProcessor
-
-
Method Details
-
process
public List<AuthorizationDetailsResponse> process(UserSessionModel userSession, ClientSessionContext clientSessionCtx, String authorizationDetailsParameter) Description copied from interface:AuthorizationDetailsProcessorProcesses the authorization_details parameter and returns a response if this processor is able to handle the given authorization_details parameter.- Specified by:
processin interfaceAuthorizationDetailsProcessor- Parameters:
userSession- the user sessionclientSessionCtx- the client session contextauthorizationDetailsParameter- the raw authorization_details parameter value- Returns:
- authorization details response if this processor can handle the parameter, null if the parameter is incompatible with this processor
-
handleMissingAuthorizationDetails
public List<AuthorizationDetailsResponse> handleMissingAuthorizationDetails(UserSessionModel userSession, ClientSessionContext clientSessionCtx) Description copied from interface:AuthorizationDetailsProcessorMethod is invoked in cases when authorization_details parameter is missing in the request. It allows processor to generate authorization details response in such a case- Specified by:
handleMissingAuthorizationDetailsin interfaceAuthorizationDetailsProcessor- Parameters:
userSession- the user sessionclientSessionCtx- the client session context- Returns:
- authorization details response if this processor can handle current request in case that authorization_details parameter was not provided
-
close
public void close()
-