org.eclipse.osgi.internal.signedcontent
Class SignedContentImpl.SignedContentEntryImpl

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

public class SignedContentImpl.SignedContentEntryImpl
extends java.lang.Object
implements SignedContentEntry


Constructor Summary
SignedContentImpl.SignedContentEntryImpl(java.lang.String entryName, SignerInfo[] entrySigners)
           
 
Method Summary
 java.lang.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

SignedContentImpl.SignedContentEntryImpl

public SignedContentImpl.SignedContentEntryImpl(java.lang.String entryName,
                                                SignerInfo[] entrySigners)
Method Detail

getName

public java.lang.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 java.io.IOException,
                   InvalidContentException
Description copied from interface: SignedContentEntry
Verifies the content of this this entry is valid.

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


Copyright © 2007-2012 FuseSource, Corp.. All Rights Reserved.