Class ExternalScriptContext
- java.lang.Object
-
- io.jans.service.external.context.ExternalScriptContext
-
- io.jans.as.server.service.external.context.ExternalScriptContext
-
- Direct Known Subclasses:
ConsentGatheringContext
,DynamicClientRegistrationContext
,DynamicScopeExternalContext
,EndSessionContext
,ExternalIntrospectionContext
,ExternalPostAuthnContext
,ExternalResourceOwnerPasswordCredentialsContext
,ExternalUmaRptClaimsContext
,ExternalUpdateTokenContext
,ModifySsaResponseContext
,SpontaneousScopeExternalContext
,UmaAuthorizationContext
,UmaGatherContext
public class ExternalScriptContext extends io.jans.service.external.context.ExternalScriptContext
Holds object required in custom scripts- Author:
- Yuriy Movchan Date: 07/01/2015
-
-
Constructor Summary
Constructors Constructor Description ExternalScriptContext(jakarta.servlet.http.HttpServletRequest httpRequest)
ExternalScriptContext(jakarta.servlet.http.HttpServletRequest httpRequest, jakarta.servlet.http.HttpServletResponse httpResponse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.ws.rs.WebApplicationException
createWebApplicationException(int status, java.lang.String entity)
jakarta.ws.rs.WebApplicationException
createWebApplicationException(jakarta.ws.rs.core.Response response)
protected java.lang.String
getEntryAttributeValue(java.lang.String dn, java.lang.String attributeName)
protected io.jans.orm.model.base.CustomEntry
getEntryByDn(java.lang.String dn, java.lang.String... ldapReturnAttributes)
io.jans.orm.PersistenceEntryManager
getPersistenceEntryManager()
jakarta.ws.rs.WebApplicationException
getWebApplicationException()
boolean
isInNetwork(java.lang.String cidrNotation)
void
setWebApplicationException(jakarta.ws.rs.WebApplicationException webApplicationException)
void
throwWebApplicationExceptionIfSet()
-
-
-
Method Detail
-
getPersistenceEntryManager
public io.jans.orm.PersistenceEntryManager getPersistenceEntryManager()
-
isInNetwork
public boolean isInNetwork(java.lang.String cidrNotation)
-
getEntryByDn
protected io.jans.orm.model.base.CustomEntry getEntryByDn(java.lang.String dn, java.lang.String... ldapReturnAttributes)
-
getEntryAttributeValue
protected java.lang.String getEntryAttributeValue(java.lang.String dn, java.lang.String attributeName)
-
getWebApplicationException
public jakarta.ws.rs.WebApplicationException getWebApplicationException()
-
setWebApplicationException
public void setWebApplicationException(jakarta.ws.rs.WebApplicationException webApplicationException)
-
createWebApplicationException
public jakarta.ws.rs.WebApplicationException createWebApplicationException(jakarta.ws.rs.core.Response response)
-
createWebApplicationException
public jakarta.ws.rs.WebApplicationException createWebApplicationException(int status, java.lang.String entity)
-
throwWebApplicationExceptionIfSet
public void throwWebApplicationExceptionIfSet()
-
-