Package io.fathom.cloud.compute.api.os.model

Examples of io.fathom.cloud.compute.api.os.model.Certificate


        X500Principal subject = new X500Principal("CN=" + "root");
        CertificateAndKey certificateAndKey = createSelfSigned(subject, 2048);

        WrappedCertificate response = new WrappedCertificate();
        response.certificate = new Certificate();
        response.certificate.data = Hex.toHex(certificateAndKey.getPublicKey().getEncoded());
        return response;
    }
View Full Code Here


    public WrappedCertificate create() throws CloudException {
        // This is entirely wrong
        warnStub();

        WrappedCertificate response = new WrappedCertificate();
        response.certificate = new Certificate();

        Auth auth = getAuth();

        User user = auth.getUser();
        if (user == null) {
View Full Code Here

TOP

Related Classes of io.fathom.cloud.compute.api.os.model.Certificate

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.