Package org.apache.aurora.scheduler.thrift.auth

Examples of org.apache.aurora.scheduler.thrift.auth.Requires


    // Ensure ROOT is always permitted.
    ImmutableList.Builder<Capability> whitelistBuilder =
        ImmutableList.<Capability>builder().add(Capability.ROOT);

    Method method = invocation.getMethod();
    Requires requires = method.getAnnotation(Requires.class);
    if (requires != null) {
      whitelistBuilder.add(requires.whitelist());
    }

    List<Capability> whitelist = whitelistBuilder.build();
    LOG.fine("Operation " + method.getName() + " may be performed by: " + whitelist);
    Optional<SessionKey> sessionKey = FluentIterable.from(Arrays.asList(invocation.getArguments()))
View Full Code Here

TOP

Related Classes of org.apache.aurora.scheduler.thrift.auth.Requires

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.