org.entityfs.jar.cap.entity
Class ECJarEntryUtil

java.lang.Object
  extended by org.entityfs.jar.cap.entity.ECJarEntryUtil

public final class ECJarEntryUtil
extends Object

This is a utility class with static utility methods for working with entities supporting the ECJarEntry capability. In addition to the methods in this class, all methods in ECZipEntryUtil can also be used on Jar file system entities.

The methods in this class will use the locking strategy for utility classes described in EntityLock.

Since:
1.0
Author:
Karl Gustafsson
See Also:
ECZipEntryUtil, ECJarEntry
In_jar:
entityfs-jar

Method Summary
static Attributes getAttributes(EntityView ent)
          Get the JarEntry Attributes.
static Certificate[] getCertificates(EntityView ent)
          Get the certificates, if any, for the Jar file entry.
static CodeSigner[] getCodeSigners(EntityView ent)
          Get the code signers, if any, for the Jar file entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAttributes

public static Attributes getAttributes(EntityView ent)
                                throws UnsupportedCapabilityException
Get the JarEntry Attributes.

Entity locks that this method will acquire (temporarily):

Parameters:
ent - The entity. It must support the ECJarEntry capability.
Returns:
The JarEntry Attributes, or null if none.
Throws:
UnsupportedCapabilityException - If the entity does not support the ECJarEntry capability.

getCertificates

public static Certificate[] getCertificates(EntityView ent)
                                     throws UnsupportedCapabilityException
Get the certificates, if any, for the Jar file entry.

Entity locks that this method will acquire (temporarily):

Parameters:
ent - The entity. It must support the ECJarEntry capability.
Returns:
The jar entry certificates, or null if none.
Throws:
UnsupportedCapabilityException - If the entity does not support the ECJarEntry capability.

getCodeSigners

public static CodeSigner[] getCodeSigners(EntityView ent)
                                   throws UnsupportedCapabilityException
Get the code signers, if any, for the Jar file entry.

Entity locks that this method will acquire (temporarily):

Parameters:
ent - The entity. It must support the ECJarEntry capability.
Returns:
The jar entry's code signers, or null if none.
Throws:
UnsupportedCapabilityException - If the entity does not support the ECJarEntry capability.