Package com.caucho.cloud.security

Examples of com.caucho.cloud.security.SecurityService


        String signature = _authManager.sign(serverAlgorithm,
                                             uid,
                                             serverNonce,
                                             password);

        SecurityService security = SecurityService.getCurrent();
       
        if ("".equals(uid))
          credentials = new SignedCredentials(uid, serverNonce, signature);
        else
          credentials = new DigestCredentials(uid, serverNonce, signature);
View Full Code Here


          throw new BamException(L.l("{0} server signature does not match",
                                      this));

        String signature = _authManager.sign(algorithm, uid, serverNonce, password);

        SecurityService security = SecurityService.getCurrent();
       
        if ("".equals(uid))
          credentials = new SignedCredentials(uid, serverNonce, signature);
        else {
          credentials = security.createCredentials(algorithm,
                                                   uid, password,
                                                   serverNonce);
        }
      }
View Full Code Here

 
  public void setResinSystemAuthKey(String digest)
  {
    _resinSystemKey = digest;
   
    SecurityService security = SecurityService.getCurrent();
   
    if (security != null)
      security.setSignatureSecret(digest);
  }
View Full Code Here

   * Sets the resin system key
   */
  @Configurable
  public void setResinSystemAuthKey(String key)
  {
    SecurityService security = SecurityService.getCurrent();

    security.setSignatureSecret(key);
  }
View Full Code Here

   * Sets the resin system key
   */
  @Configurable
  public void setResinSystemAuthKey(String key)
  {
    SecurityService security = SecurityService.getCurrent();
    security.setSignatureSecret(key);
  }
View Full Code Here

TOP

Related Classes of com.caucho.cloud.security.SecurityService

Copyright © 2018 www.massapicom. 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.