Package waffle.windows.auth

Examples of waffle.windows.auth.IWindowsIdentity.dispose()


            }
        } catch (Win32Exception ex) {
            return null;
        } finally {
            if (identity != null) {
                identity.dispose();
            }
        }
    }

    @Override
View Full Code Here


            }
        } catch (Win32Exception ex) {
            return null;
        } finally {
            if (identity != null) {
                identity.dispose();
            }
        }
    }

    @Override
View Full Code Here

      return null;
    }

    if (identity.isGuest() && !settings.getBoolean(Keys.realm.windows.allowGuests, false)) {
      logger.warn("Guest account access is disabled");
      identity.dispose();
      return null;
    }

        UserModel user = userManager.getUserModel(username);
        if (user == null) {
View Full Code Here

        // push the changes to the backing user service
        updateUser(user);

        // cleanup resources
        identity.dispose();

        return user;
    }
}
View Full Code Here

                LOGGER.debug("Failed login for user {}: {}", username, e.getMessage());
                LOGGER.trace("{}", e);
                throw new AuthenticationException("Login failed", e);
            } finally {
                if (identity != null) {
                    identity.dispose();
                }
            }
        }
        return authenticationInfo;
    }
View Full Code Here

            register(request, response, windowsPrincipal, securityPackage, windowsPrincipal.getName(), null);
            this.log.info("successfully logged in user: {}", windowsPrincipal.getName());

        } finally {
            windowsIdentity.dispose();
        }

        return true;
    }
View Full Code Here

            this.log.debug("session id: {}", session == null ? "null" : session.getId());

            register(request, response, windowsPrincipal, "FORM", windowsPrincipal.getName(), null);
            this.log.info("successfully logged in user: {}", windowsPrincipal.getName());
        } finally {
            windowsIdentity.dispose();
        }

        return true;
    }
View Full Code Here

            } finally {
                if (this.impersonate && ctx != null) {
                    LOGGER.debug("terminating impersonation");
                    ctx.revertToSelf();
                } else {
                    windowsIdentity.dispose();
                }
            }

            return;
        }
View Full Code Here

            final GenericWindowsPrincipal windowsPrincipal = new GenericWindowsPrincipal(windowsIdentity,
                    this.principalFormat, this.roleFormat);
            this.log.debug("roles: {}", windowsPrincipal.getRolesString());
            return windowsPrincipal;
        } finally {
            windowsIdentity.dispose();
        }
    }

}
View Full Code Here

                SecurityContextHolder.getContext().setAuthentication(authentication);

                LOGGER.info("successfully logged in user: {}", windowsIdentity.getFqn());

            } finally {
                windowsIdentity.dispose();
            }
        }

        chain.doFilter(request, response);
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.