Package org.glassfish.appclient.server.core.jws.servedcontent

Examples of org.glassfish.appclient.server.core.jws.servedcontent.AutoSignedContent


    private AutoSignedContent systemJarSignedContent (
            final File unsignedFile,
            final String signingAlias) throws FileNotFoundException {
        final File signedFile = new File(signedSystemContentAliasDir(signingAlias),
                relativeSystemPath(unsignedFile.toURI()));
        return new AutoSignedContent(unsignedFile, signedFile, signingAlias, jarSigner);
    }
View Full Code Here


        /*
         * The key to the map is also the subpath to the file within the
         * domain's repository which holds signed system JARs.
         */
        final String key = keyToAppLevelSignedSystemContentMap(relativePathToSystemJar, alias);
        AutoSignedContent result = appLevelSignedSystemContent.get(key);
        if (result == null) {
            final File unsignedFile = new File(umbrellaRoot, relativePathToSystemJar);
            final File signedFile = new File(systemLevelSignedJARsRoot, key);
            result = new AutoSignedContent(unsignedFile, signedFile, alias, jarSigner);
            appLevelSignedSystemContent.put(key, result);
        }
        return result;
    }
View Full Code Here

        StaticContent content = relURIToContent.get(jarURIRelativeToApp);
        if (content == null) {
            final File unsignedFile = new File(absURIToFile);
            final File signedFile = signedFileForLib(jarURIRelativeToApp, unsignedFile);
            content = new AutoSignedContent(unsignedFile, signedFile, autoSigningAlias, jarSigner);
            relURIToContent.put(jarURIRelativeToApp, content);
        } else {
            if (content instanceof AutoSignedContent) {
                content = AutoSignedContent.class.cast(content);
            } else {
View Full Code Here

    private StaticContent createSignedStaticContent(
            final File unsignedFile,
            final File signedFile) throws FileNotFoundException {
        signedFile.getParentFile().mkdirs();
        final StaticContent signedJarContent = new AutoSignedContent(
                unsignedFile,
                signedFile,
                signingAlias,
                jarSigner);
        return signedJarContent;
View Full Code Here

        StaticContent content = relURIToContent.get(jarURIRelativeToApp);
        if (content == null) {
            final File unsignedFile = new File(absURIToFile);
            final File signedFile = signedFileForLib(jarURIRelativeToApp, unsignedFile);
            content = new AutoSignedContent(unsignedFile, signedFile, autoSigningAlias, jarSigner, jarURIRelativeToApp.toASCIIString(),
                    helper.appName());
            relURIToContent.put(jarURIRelativeToApp, content);
        } else {
            if (content instanceof AutoSignedContent) {
                content = AutoSignedContent.class.cast(content);
View Full Code Here

            final File unsignedFile,
            final File signedFile,
            final URI uriForLookup,
            final String appName) throws FileNotFoundException {
        mkdirs(signedFile.getParentFile());
        final StaticContent signedJarContent = new AutoSignedContent(
                unsignedFile,
                signedFile,
                signingAlias,
                jarSigner,
                uriForLookup.toASCIIString(),
View Full Code Here

            final File unsignedFile,
            final String signingAlias) throws FileNotFoundException {
        final String relativeURI = relativeSystemPath(unsignedFile.toURI());
        final File signedFile = new File(signedSystemContentAliasDir(signingAlias),
                relativeURI);
        return new AutoSignedContent(unsignedFile, signedFile, signingAlias, jarSigner, relativeURI,
                MANIFEST_APP_NAME_FOR_SYSTEM_FILES);
    }
View Full Code Here

        /*
         * The key to the map is also the subpath to the file within the
         * domain's repository which holds signed system JARs.
         */
        final String key = keyToAppLevelSignedSystemContentMap(relativePathToSystemJar, alias);
        AutoSignedContent result = appLevelSignedSystemContent.get(key);
        if (result == null) {
            final File unsignedFile = new File(umbrellaRoot, relativePathToSystemJar);
            final File signedFile = new File(systemLevelSignedJARsRoot, key);
            result = new AutoSignedContent(unsignedFile, signedFile, alias, jarSigner, relativePathToSystemJar,
                    MANIFEST_APP_NAME_FOR_SYSTEM_FILES);
            appLevelSignedSystemContent.put(key, result);
        }
        return result;
    }
View Full Code Here

    private StaticContent createSignedStaticContent(
            final File unsignedFile,
            final File signedFile) throws FileNotFoundException {
        mkdirs(signedFile.getParentFile());
        final StaticContent signedJarContent = new AutoSignedContent(
                unsignedFile,
                signedFile,
                signingAlias,
                jarSigner);
        return signedJarContent;
View Full Code Here

    private AutoSignedContent systemJarSignedContent (
            final File unsignedFile,
            final String signingAlias) throws FileNotFoundException {
        final File signedFile = new File(signedSystemContentAliasDir(signingAlias),
                relativeSystemPath(unsignedFile.toURI()));
        return new AutoSignedContent(unsignedFile, signedFile, signingAlias, jarSigner);
    }
View Full Code Here

TOP

Related Classes of org.glassfish.appclient.server.core.jws.servedcontent.AutoSignedContent

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.