Class DynamicClientRegistrationContext
- java.lang.Object
-
- io.jans.service.external.context.ExternalScriptContext
-
- io.jans.as.server.service.external.context.ExternalScriptContext
-
- io.jans.as.server.service.external.context.DynamicClientRegistrationContext
-
public class DynamicClientRegistrationContext extends ExternalScriptContext
- Author:
- Yuriy Zabrovarnyy
-
-
Constructor Summary
Constructors Constructor Description DynamicClientRegistrationContext(jakarta.servlet.http.HttpServletRequest httpRequest, org.json.JSONObject registerRequest, io.jans.model.custom.script.conf.CustomScriptConfiguration script)
DynamicClientRegistrationContext(jakarta.servlet.http.HttpServletRequest httpRequest, org.json.JSONObject registerRequest, io.jans.model.custom.script.conf.CustomScriptConfiguration script, io.jans.as.common.model.registration.Client client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.ws.rs.WebApplicationException
createStaleEvidenceWebApplicationException()
jakarta.ws.rs.WebApplicationException
createStaleEvidenceWebApplicationException(String nonce)
X509Certificate
getCertificate()
io.jans.as.common.model.registration.Client
getClient()
Map<String,io.jans.model.SimpleCustomProperty>
getConfigurationAttibutes()
io.jans.as.model.jwt.Jwt
getDcr()
io.jans.as.model.error.ErrorResponseFactory
getErrorResponseFactory()
io.jans.as.model.jwt.Jwt
getEvidence()
io.jans.as.client.RegisterRequest
getRegisterRequest()
org.json.JSONObject
getRegisterRequestJson()
io.jans.model.custom.script.conf.CustomScriptConfiguration
getScript()
io.jans.as.model.jwt.Jwt
getSoftwareStatement()
void
setCertificate(X509Certificate certificate)
void
setClient(io.jans.as.common.model.registration.Client client)
void
setDcr(io.jans.as.model.jwt.Jwt dcr)
void
setErrorResponseFactory(io.jans.as.model.error.ErrorResponseFactory errorResponseFactory)
void
setEvidence(io.jans.as.model.jwt.Jwt evidence)
void
setRegisterRequest(io.jans.as.client.RegisterRequest registerRequest)
void
setRegisterRequestJson(org.json.JSONObject registerRequestJson)
void
setScript(io.jans.model.custom.script.conf.CustomScriptConfiguration script)
void
setSoftwareStatement(io.jans.as.model.jwt.Jwt softwareStatement)
void
throwWebApplicationException(String message, io.jans.as.model.error.IErrorType errorType)
String
toString()
void
validateCertSubjectHasCNAndOU()
void
validateCNEqualsSoftwareId()
String
validateCNIsNotBlank()
void
validateIssuer()
void
validateOUEqualsOrgId()
String
validateOUIsNotBlank()
void
validateSoftwareId()
void
validateSSA()
void
validateSSANotNull()
void
validateSSARedirectUri()
void
validateSSARedirectUri(String ssaRedirectUriClaimName)
-
Methods inherited from class io.jans.as.server.service.external.context.ExternalScriptContext
createWebApplicationException, createWebApplicationException, getAuthzRequest, getEntryAttributeValue, getEntryByDn, getExecutionContext, getPersistenceEntryManager, getWebApplicationException, isInNetwork, setWebApplicationException, throwWebApplicationExceptionIfSet
-
-
-
-
Constructor Detail
-
DynamicClientRegistrationContext
public DynamicClientRegistrationContext(jakarta.servlet.http.HttpServletRequest httpRequest, org.json.JSONObject registerRequest, io.jans.model.custom.script.conf.CustomScriptConfiguration script)
-
DynamicClientRegistrationContext
public DynamicClientRegistrationContext(jakarta.servlet.http.HttpServletRequest httpRequest, org.json.JSONObject registerRequest, io.jans.model.custom.script.conf.CustomScriptConfiguration script, io.jans.as.common.model.registration.Client client)
-
-
Method Detail
-
getEvidence
public io.jans.as.model.jwt.Jwt getEvidence()
-
setEvidence
public void setEvidence(io.jans.as.model.jwt.Jwt evidence)
-
createStaleEvidenceWebApplicationException
public jakarta.ws.rs.WebApplicationException createStaleEvidenceWebApplicationException()
-
createStaleEvidenceWebApplicationException
public jakarta.ws.rs.WebApplicationException createStaleEvidenceWebApplicationException(String nonce)
-
getDcr
public io.jans.as.model.jwt.Jwt getDcr()
-
setDcr
public void setDcr(io.jans.as.model.jwt.Jwt dcr)
-
getSoftwareStatement
public io.jans.as.model.jwt.Jwt getSoftwareStatement()
-
setSoftwareStatement
public void setSoftwareStatement(io.jans.as.model.jwt.Jwt softwareStatement)
-
getScript
public io.jans.model.custom.script.conf.CustomScriptConfiguration getScript()
-
setScript
public void setScript(io.jans.model.custom.script.conf.CustomScriptConfiguration script)
-
getRegisterRequestJson
public org.json.JSONObject getRegisterRequestJson()
-
setRegisterRequestJson
public void setRegisterRequestJson(org.json.JSONObject registerRequestJson)
-
getRegisterRequest
public io.jans.as.client.RegisterRequest getRegisterRequest()
-
setRegisterRequest
public void setRegisterRequest(io.jans.as.client.RegisterRequest registerRequest)
-
getConfigurationAttibutes
public Map<String,io.jans.model.SimpleCustomProperty> getConfigurationAttibutes()
-
getClient
public io.jans.as.common.model.registration.Client getClient()
-
setClient
public void setClient(io.jans.as.common.model.registration.Client client)
-
validateSSA
public void validateSSA()
-
validateIssuer
public void validateIssuer()
-
validateCertSubjectHasCNAndOU
public void validateCertSubjectHasCNAndOU()
-
validateOUIsNotBlank
public String validateOUIsNotBlank()
-
validateCNIsNotBlank
public String validateCNIsNotBlank()
-
throwWebApplicationException
public void throwWebApplicationException(String message, io.jans.as.model.error.IErrorType errorType)
-
validateCNEqualsSoftwareId
public void validateCNEqualsSoftwareId()
-
validateOUEqualsOrgId
public void validateOUEqualsOrgId()
-
validateSSARedirectUri
public void validateSSARedirectUri()
-
validateSSARedirectUri
public void validateSSARedirectUri(String ssaRedirectUriClaimName)
-
validateSSANotNull
public void validateSSANotNull()
-
validateSoftwareId
public void validateSoftwareId()
-
getErrorResponseFactory
public io.jans.as.model.error.ErrorResponseFactory getErrorResponseFactory()
-
setErrorResponseFactory
public void setErrorResponseFactory(io.jans.as.model.error.ErrorResponseFactory errorResponseFactory)
-
getCertificate
public X509Certificate getCertificate()
-
setCertificate
public void setCertificate(X509Certificate certificate)
-
-