CallbackHandler handler = SecurityActions.getContextCallbackHandler(); if( handler != null )
protected void verifyPassword( VerifyPasswordCallback vpc) throws NamingException { String credential = vpc.getValue(); ClassLoader currentTCCL = SecurityActions.getContextClassLoader(); if (currentTCCL != null) SecurityActions.setContextClassLoader(null); String baseDN = options.get(BASE_CTX_DN); String baseFilter = options.get(BASE_FILTER_OPT); InitialLdapContext ctx= this.constructInitialLdapContext(bindDN, bindCredential); bindDNAuthentication(ctx, userName, credential, baseDN, baseFilter); vpc.setVerified(true); }
SecurityContext currentSC = SecurityActions.getCurrentSecurityContext(); if( currentSC == null ) throw PicketBoxMessages.MESSAGES.invalidNullSecurityContext(); SecurityContext currentSC = SecurityActions.getCurrentSecurityContext(); SecurityContext currentSC = SecurityActions.getCurrentSecurityContext(); if( currentSC == null ) throw PicketBoxMessages.MESSAGES.invalidNullSecurityContext();
CallbackHandler handler = SecurityActions.getContextCallbackHandler(); if( handler != null )
ClassLoader currentTCCL = SecurityActions.getContextClassLoader(); try SecurityActions.setContextClassLoader(null); ctx = this.constructInitialLdapContext(bindDN, bindCredential); SecurityActions.setContextClassLoader(currentTCCL); safeClose(ctx); if (currentTCCL != null) SecurityActions.setContextClassLoader(currentTCCL);
CallbackHandler handler = SecurityActions.getContextCallbackHandler(); if( handler != null )
CallbackHandler handler = SecurityActions.getContextCallbackHandler(); if( handler != null )