Class ExternalScriptContext

    • Field Summary

      • Fields inherited from class io.jans.service.external.context.ExternalScriptContext

        httpRequest, httpResponse
    • Constructor Summary

      Constructors 
      Constructor Description
      ExternalScriptContext​(jakarta.servlet.http.HttpServletRequest httpRequest)  
      ExternalScriptContext​(jakarta.servlet.http.HttpServletRequest httpRequest, jakarta.servlet.http.HttpServletResponse httpResponse)  
    • Constructor Detail

      • ExternalScriptContext

        public ExternalScriptContext​(jakarta.servlet.http.HttpServletRequest httpRequest)
      • ExternalScriptContext

        public ExternalScriptContext​(jakarta.servlet.http.HttpServletRequest httpRequest,
                                     jakarta.servlet.http.HttpServletResponse httpResponse)
    • 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()