Search in sources :

Example 1 with StreamedAutoSignedStaticContent

use of org.glassfish.appclient.server.core.jws.servedcontent.StreamedAutoSignedStaticContent in project Payara by payara.

the class JavaWebStartInfo method createAndAddSignedStaticContentFromMainJAR.

private void createAndAddSignedStaticContentFromMainJAR(final Map<String, StaticContent> content, final URI uriToFile, final URI uriForLookup, final String tokenName) throws FileNotFoundException {
    final File unsignedFile = new File(uriToFile);
    final StaticContent signedContent = new StreamedAutoSignedStaticContent(unsignedFile, signingAlias, jarSigner, uriForLookup.toASCIIString(), acServerApp.getDescriptor().getName());
    recordStaticContent(content, signedContent, uriForLookup, tokenName);
}
Also used : StreamedAutoSignedStaticContent(org.glassfish.appclient.server.core.jws.servedcontent.StreamedAutoSignedStaticContent) StaticContent(org.glassfish.appclient.server.core.jws.servedcontent.StaticContent) StreamedAutoSignedStaticContent(org.glassfish.appclient.server.core.jws.servedcontent.StreamedAutoSignedStaticContent) JarFile(java.util.jar.JarFile) File(java.io.File)

Aggregations

File (java.io.File)1 JarFile (java.util.jar.JarFile)1 StaticContent (org.glassfish.appclient.server.core.jws.servedcontent.StaticContent)1 StreamedAutoSignedStaticContent (org.glassfish.appclient.server.core.jws.servedcontent.StreamedAutoSignedStaticContent)1