Package org.rundeck.storage.api

Examples of org.rundeck.storage.api.Path


        public InputStream getPrivateKeyResourceData() throws IOException{
            String privateKeyResourcePath = getPrivateKeyResourcePath();
            if (null == privateKeyResourcePath) {
                return null;
            }
            Path path = PathUtil.asPath(privateKeyResourcePath);
            ResourceMeta contents = context.getStorageTree().getResource(path)
                    .getContents();
            return contents.getInputStream();
        }
View Full Code Here


        public byte[] getPasswordStorageData() throws IOException{
            String passwordStoragePath = getPasswordStoragePath();
            if (null == passwordStoragePath) {
                return null;
            }
            Path path = PathUtil.asPath(passwordStoragePath);
            ResourceMeta contents = context.getStorageTree().getResource(path)
                    .getContents();
            ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
            contents.writeContent(byteArrayOutputStream);
            return byteArrayOutputStream.toByteArray();
View Full Code Here

TOP

Related Classes of org.rundeck.storage.api.Path

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.