Package org.platformlayer.auth

Examples of org.platformlayer.auth.Authenticator


    out.project = in.getProjectId().getKey();
    List<String> trustKeys = in.getTrustKeys();
    if (trustKeys != null && !trustKeys.isEmpty()) {
      out.trustKeys = Joiner.on(",").join(trustKeys);
    }
    Authenticator authenticator = in.getAuthenticator();
    if (authenticator instanceof DirectAuthenticator) {
      DirectAuthenticator directAuthenticator = (DirectAuthenticator) authenticator;
      DirectAuthenticationToken token = directAuthenticator.getAuthenticationToken();
      out.secret = Secret.build(Hex.toHex(FathomdbCrypto.serialize(token.getSecret())));
      out.token = token.getToken();
View Full Code Here


      throw new UnsupportedOperationException();
    }
  }

  private static PlatformLayerEndpointInfo rehydrateEndpoint(final EndpointRecord in) {
    final Authenticator authenticator;
    final String platformlayerBaseUrl = in.url;
    final ProjectId projectId = new ProjectId(in.project);
    final List<String> trustKeys;

    if (Strings.isNullOrEmpty(in.trustKeys)) {
View Full Code Here

    String server = config.authenticationEndpoint;
    String username = config.username;
    String secret = config.secret;
    List<String> authTrustKeys = config.authTrustKeys;

    Authenticator authenticator = new PlatformlayerAuthenticator(httpStrategy, username, secret, server,
        authTrustKeys);
    ProjectId projectId = new ProjectId(project);

    return build(httpStrategy, config.platformlayerEndpoint, authenticator, projectId,
        config.platformlayerTrustKeys);
View Full Code Here

TOP

Related Classes of org.platformlayer.auth.Authenticator

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.