Package org.apache.wicket.authentication

Examples of org.apache.wicket.authentication.IAuthenticationStrategy.load()


    if (isSignedIn() == false)
    {
      IAuthenticationStrategy authenticationStrategy = getApplication().getSecuritySettings()
        .getAuthenticationStrategy();
      // get username and password from persistence store
      String[] data = authenticationStrategy.load();

      if ((data != null) && (data.length > 1))
      {
        // try to sign in the user
        if (signIn(data[0], data[1]))
View Full Code Here


  @Override
  public boolean isSignedIn() {
    if (userId < 1) {
      IAuthenticationStrategy strategy = getAuthenticationStrategy();
      // get username and password from persistence store
      String[] data = strategy.load();
      if ((data != null) && (data.length > 2)) {
        // try to sign in the user
        if (!signIn(data[0], data[1], data[2])) {
          // the loaded credentials are wrong. erase them.
          strategy.remove();
View Full Code Here

      if (WebSession.get().isSignedIn()) {
        alreadyLoggedIn();
      } else {
        IAuthenticationStrategy strategy = getApplication().getSecuritySettings().getAuthenticationStrategy();
        // get username and password from persistence store
        String[] data = strategy.load();

        if ((data != null) && (data.length > 1)) {
          // try to sign in the user
          if (WebSession.get().signIn(data[0], data[1])) {
            login = data[0];
View Full Code Here

  @Override
  public boolean isSignedIn() {
    if (userId < 1) {
      IAuthenticationStrategy strategy = getAuthenticationStrategy();
      // get username and password from persistence store
      String[] data = strategy.load();
      if ((data != null) && (data.length > 2)) {
        // try to sign in the user
        if (!signIn(data[0], data[1], data[2])) {
          // the loaded credentials are wrong. erase them.
          strategy.remove();
View Full Code Here

  @Override
  public boolean isSignedIn() {
    if (userId < 1) {
      IAuthenticationStrategy strategy = getAuthenticationStrategy();
      // get username and password from persistence store
      String[] data = strategy.load();
      if (data != null && data.length > 3 && data[2] != null) {
        Long domainId = null;
        try {
          domainId = Long.parseLong(data[3]);
        } catch (Exception e) {
View Full Code Here

    if (isSignedIn() == false)
    {
      IAuthenticationStrategy authenticationStrategy = getApplication().getSecuritySettings()
        .getAuthenticationStrategy();
      // get username and password from persistence store
      String[] data = authenticationStrategy.load();

      if ((data != null) && (data.length > 1))
      {
        // try to sign in the user
        if (signIn(data[0], data[1]))
View Full Code Here

    if (isSignedIn() == false)
    {
      IAuthenticationStrategy authenticationStrategy = getApplication().getSecuritySettings()
        .getAuthenticationStrategy();
      // get username and password from persistence store
      String[] data = authenticationStrategy.load();

      if ((data != null) && (data.length > 1))
      {
        // try to sign in the user
        if (signIn(data[0], data[1]))
View Full Code Here

    // logged in already?
    if (isSignedIn() == false) {
      IAuthenticationStrategy authenticationStrategy = getApplication().getSecuritySettings()
          .getAuthenticationStrategy();
      // get username and password from persistence store
      String[] data = authenticationStrategy.load();

      if ((data != null) && (data.length > 1)) {
        // try to sign in the user
        if (signInRemembered(data[0], data[1])) {
          username = data[0];
View Full Code Here

    if (isSignedIn() == false)
    {
      IAuthenticationStrategy authenticationStrategy = getApplication().getSecuritySettings()
        .getAuthenticationStrategy();
      // get username and password from persistence store
      String[] data = authenticationStrategy.load();

      if ((data != null) && (data.length > 1))
      {
        // try to sign in the user
        if (signIn(data[0], data[1]))
View Full Code Here

    if (isSignedIn() == false)
    {
      IAuthenticationStrategy authenticationStrategy = getApplication().getSecuritySettings()
        .getAuthenticationStrategy();
      // get username and password from persistence store
      String[] data = authenticationStrategy.load();

      if ((data != null) && (data.length > 1))
      {
        // try to sign in the user
        if (signIn(data[0], data[1]))
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.