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