public class SignedContentImpl.SignedContentEntryImpl extends Object implements SignedContentEntry
Constructor and Description |
---|
SignedContentImpl.SignedContentEntryImpl(String entryName,
SignerInfo[] entrySigners) |
Modifier and Type | Method and Description |
---|---|
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.
|
public SignedContentImpl.SignedContentEntryImpl(String entryName, SignerInfo[] entrySigners)
public String getName()
SignedContentEntry
getName
in interface SignedContentEntry
public SignerInfo[] getSignerInfos()
SignedContentEntry
SignedContentEntry
. If the entry
is not signed then an empty array is returned.getSignerInfos
in interface SignedContentEntry
SignedContentEntry
public boolean isSigned()
SignedContentEntry
SignedContentEntry.getSignerInfos()
.length > 0
isSigned
in interface SignedContentEntry
public void verify() throws IOException, InvalidContentException
SignedContentEntry
verify
in interface SignedContentEntry
IOException
- if an error occurred reading the entry contentInvalidContentException
- if the entry content is not validCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.