org.eclipse.osgi.internal.signedcontent
Class SignedContentFile.SignedContentFileEntry

java.lang.Object
  extended by org.eclipse.osgi.internal.signedcontent.SignedContentFile.SignedContentFileEntry
All Implemented Interfaces:
SignedContentEntry
Enclosing class:
SignedContentFile

public class SignedContentFile.SignedContentFileEntry
extends Object
implements SignedContentEntry


Constructor Summary
SignedContentFile.SignedContentFileEntry(SignedContentEntry entry)
           
 
Method Summary
 String getName()
          Returns the name of the entry.
 SignerInfo[] getSignerInfos()
          Returns the signer infos for this SignedContentEntry.
 boolean isSigned()
          Returns true if the entry is signed; false otherwise.
 void verify()
          Verifies the content of this this entry is valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignedContentFile.SignedContentFileEntry

public SignedContentFile.SignedContentFileEntry(SignedContentEntry entry)
Method Detail

getName

public String getName()
Description copied from interface: SignedContentEntry
Returns the name of the entry.

Specified by:
getName in interface SignedContentEntry
Returns:
the name of the entry.

getSignerInfos

public SignerInfo[] getSignerInfos()
Description copied from interface: SignedContentEntry
Returns the signer infos for this SignedContentEntry. If the entry is not signed then an empty array is returned.

Specified by:
getSignerInfos in interface SignedContentEntry
Returns:
the signer infos for this SignedContentEntry

isSigned

public boolean isSigned()
Description copied from interface: SignedContentEntry
Returns true if the entry is signed; false otherwise. This is a convenience method equivalent to calling SignedContentEntry.getSignerInfos().length > 0

Specified by:
isSigned in interface SignedContentEntry
Returns:
true if the content is signed

verify

public void verify()
            throws IOException,
                   InvalidContentException
Description copied from interface: SignedContentEntry
Verifies the content of this this entry is valid.

Specified by:
verify in interface SignedContentEntry
Throws:
IOException - if an error occurred reading the entry content
InvalidContentException - if the entry content is not valid


Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.