Examples of Auth


Examples of com.volantis.vdp.sps.authentication.Auth

            // Connect to server and open I/O streams
            server = configureSCSSocket();
            input = new DataInputStream(server.getInputStream());
            output = new DataOutputStream(server.getOutputStream());
            auth = new Auth(input, output, config);
            int authorization = auth.auth();

            if (authorization != AuthenticationToken.LOGIN_SUCCESFUL) {
                // Authorization failed write message to stdout and terminate server with error code
                System.out.println("Autorization failed: " +
View Full Code Here

Examples of com.volantis.vdp.sps.authentication.Auth

        try {
            server = configureSCSSocket();
            input = new DataInputStream(server.getInputStream());
            output = new DataOutputStream(server.getOutputStream());
            auth = new Auth(input, output, config);
            if (auth.auth() == AuthenticationToken.LOGIN_SUCCESFUL) {
                connected = true;
            }

        } catch (ConnectException e) {
View Full Code Here

Examples of io.fabric8.docker.api.Auth

                if (actualImage != null) {
                    containerConfig.setImage(actualImage);

                    if (customImagePush) {
                        LOG.info("Pushing image to repository " + newImageName + " actualImage: " + actualImage);
                        Auth authConfig = new Auth();
                        authConfig.setEmail("person@fabric8.io");
                        authConfig.setUsername(service.getZooKeeperUser());
                        authConfig.setPassword(service.getZookeeperPassword());
                        try {
                            docker.imagePush(newImageName, "latest", authConfig);
                            LOG.info("Image pushed to repository " + newImageName);
                        } catch (Exception e) {
                            LOG.info("Failed to push image " + newImageName + ": " + e + Dockers.dockerErrorMessage(e), e);
View Full Code Here

Examples of io.fathom.cloud.server.auth.Auth

    SecretService secretsService;

    @GET
    @Path("{id}")
    public Secret findSecret(@PathParam("id") long id) throws CloudException {
        Auth auth = getAuth();
        Project project = getProject();

        SecretService.Secret secret = secretsService.find(auth, project, id);
        notFoundIfNull(secret);
View Full Code Here

Examples of io.fathom.cloud.server.auth.Auth

    }

    @GET
    @Path("{id}/{key}")
    public Response getSecret(@PathParam("id") long id, @PathParam("key") String key) throws CloudException {
        Auth auth = getAuth();
        Project project = getProject();

        SecretService.Secret secret = secretsService.find(auth, project, id);
        notFoundIfNull(secret);
View Full Code Here

Examples of io.fathom.cloud.server.auth.Auth

        return Response.ok(data).build();
    }

    @GET
    public SecretList listSecrets() throws CloudException {
        Auth auth = getAuth();
        Project project = getProject();

        SecretList ret = new SecretList();
        ret.secrets = Lists.newArrayList();
View Full Code Here

Examples of io.fathom.cloud.server.auth.Auth

        super("dns-zone-list");
    }

    @Override
    protected List<DnsZoneData> run0() throws Exception {
        Auth auth = getAuth();
        Project project = auth.getProject();

        List<DnsZone> zones = dns.listZones(project);
        return DnsZone.toData(zones);
    }
View Full Code Here

Examples of io.fathom.cloud.server.auth.Auth

        super("dns-zone-delete");
    }

    @Override
    protected DnsZoneData run0() throws Exception {
        Auth auth = getAuth();
        Project project = auth.getProject();

        DnsZone found = dns.findZoneByName(project, zone);
        if (found == null) {
            throw new IllegalArgumentException("Zone not found: " + zone);
        }
View Full Code Here

Examples of io.fathom.cloud.server.auth.Auth

        super("dns-record-create");
    }

    @Override
    protected DnsRecordsetData run0() throws Exception {
        Auth auth = getAuth();
        Project project = auth.getProject();

        DnsZone zone = dns.findMaximalZone(project, fqdn);
        if (zone == null) {
            throw new IllegalArgumentException("Cannot find matching zone");
        }
View Full Code Here

Examples of io.fathom.cloud.server.auth.Auth

    @Inject
    SecretService secretService;

    @Override
    protected Message run0() throws Exception {
        Auth auth = getAuth();
        Project project = auth.getProject();

        secretService.deleteKey(auth, project, id);
        return null;
    }
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.