Package org.platformlayer.auth

Examples of org.platformlayer.auth.ServiceAccountEntity


  @Override
  public void visit(CliContext context, ServiceAccount o, OutputSink sink) throws IOException {
    LinkedHashMap<String, Object> values = Maps.newLinkedHashMap();

    ServiceAccountEntity entity = (ServiceAccountEntity) o;

    values.put("subject", entity.subject);
    values.put("publicKeyData", Hex.toHex(entity.publicKeyData));

    sink.outputRow(values);
View Full Code Here


    if (Strings.isNullOrEmpty(inspect.publicKey)) {
      throw new IllegalArgumentException();
    }
    byte[] publicKey = Hex.fromHex(inspect.publicKey);

    ServiceAccountEntity auth;
    try {
      auth = repository.findServiceAccount(subject, publicKey);
    } catch (RepositoryException e) {
      throw new AuthenticatorException("Error while authenticating user", e);
    }
View Full Code Here

TOP

Related Classes of org.platformlayer.auth.ServiceAccountEntity

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.