org.entityfs.jar.cap.entity
Interface ECJarEntry

All Superinterfaces:
ECZipEntry, EntityCapability

public interface ECJarEntry
extends ECZipEntry

This is an entity capability for entities that have JarEntry objects. All entities in a Jar file system support this.

Since:
1.0
Author:
Karl Gustafsson
See Also:
ECTJarEntry, ECJarEntryUtil, FSCJarFileBacked

Method Summary
 Attributes getAttributes()
          Get the Jar attributes for the entity.
 Certificate[] getCertificates()
          Get the certificates for this entity.
 CodeSigner[] getCodeSigners()
          Get the code signers for the entity.
 
Methods inherited from interface org.entityfs.zip.cap.entity.ECZipEntry
getComment, getCompressedSize, getCrc, getExtra
 
Methods inherited from interface org.entityfs.cap.EntityCapability
getEntity, isValid
 

Method Detail

getAttributes

Attributes getAttributes()
                         throws ReadLockRequiredException,
                                AccessDeniedException
Get the Jar attributes for the entity.

Returns:
The Jar entry attributes.
Throws:
ReadLockRequiredException - If the client does not have a read lock for the file.
AccessDeniedException - If the client does not have read access to the entity.
See Also:
JarEntry.getAttributes()
Locks_required:
A read lock on the entity.
Permissions_required:
Read access.

getCertificates

Certificate[] getCertificates()
                              throws ReadLockRequiredException,
                                     AccessDeniedException
Get the certificates for this entity.

Returns:
The certificates, or null if none.
Throws:
ReadLockRequiredException - If the client does not have a read lock for the file.
AccessDeniedException - If the client does not have read access to the entity.
See Also:
JarEntry.getCertificates()
Locks_required:
A read lock for the entity.
Permissions_required:
Read access.

getCodeSigners

CodeSigner[] getCodeSigners()
                            throws ReadLockRequiredException,
                                   AccessDeniedException
Get the code signers for the entity.

Returns:
The code signers, or null if none.
Throws:
ReadLockRequiredException - If the client does not have a read lock for the file.
AccessDeniedException - If the client does not have read access to the entity.
See Also:
JarEntry.getCodeSigners()
Locks_required:
A read lock on the entity.
Permissions_required:
Read access.