Class MessageMetadata.Layer
- java.lang.Object
-
- org.pgpainless.decryption_verification.MessageMetadata.Layer
-
- All Implemented Interfaces:
MessageMetadata.Packet
- Direct Known Subclasses:
MessageMetadata.CompressedData
,MessageMetadata.EncryptedData
,MessageMetadata.Message
- Enclosing class:
- MessageMetadata
public abstract static class MessageMetadata.Layer extends java.lang.Object implements MessageMetadata.Packet
-
-
Field Summary
Fields Modifier and Type Field Description protected MessageMetadata.Nested
child
protected int
depth
static int
MAX_LAYER_DEPTH
protected java.util.List<SignatureVerification.Failure>
rejectedDetachedSignatures
protected java.util.List<SignatureVerification.Failure>
rejectedOnePassSignatures
protected java.util.List<SignatureVerification.Failure>
rejectedPrependedSignatures
protected java.util.List<SignatureVerification>
verifiedDetachedSignatures
protected java.util.List<SignatureVerification>
verifiedOnePassSignatures
protected java.util.List<SignatureVerification>
verifiedPrependedSignatures
-
Constructor Summary
Constructors Constructor Description Layer(int depth)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageMetadata.Nested
getChild()
Return the nested child element of this layer.java.util.List<SignatureVerification.Failure>
getRejectedDetachedSignatures()
Return a list of all rejected detached signatures of this layer.java.util.List<SignatureVerification.Failure>
getRejectedOnePassSignatures()
Return a list of all rejected one-pass-signatures of this layer.java.util.List<SignatureVerification.Failure>
getRejectedPrependedSignatures()
Return a list of all rejected prepended signatures of this layer.java.util.List<SignatureVerification>
getVerifiedDetachedSignatures()
Return a list of all verified detached signatures of this layer.java.util.List<SignatureVerification>
getVerifiedOnePassSignatures()
Return a list of all verified one-pass-signatures of this layer.java.util.List<SignatureVerification>
getVerifiedPrependedSignatures()
Return a list of all verified prepended signatures of this layer.
-
-
-
Field Detail
-
MAX_LAYER_DEPTH
public static final int MAX_LAYER_DEPTH
- See Also:
- Constant Field Values
-
depth
protected final int depth
-
verifiedDetachedSignatures
protected final java.util.List<SignatureVerification> verifiedDetachedSignatures
-
rejectedDetachedSignatures
protected final java.util.List<SignatureVerification.Failure> rejectedDetachedSignatures
-
verifiedOnePassSignatures
protected final java.util.List<SignatureVerification> verifiedOnePassSignatures
-
rejectedOnePassSignatures
protected final java.util.List<SignatureVerification.Failure> rejectedOnePassSignatures
-
verifiedPrependedSignatures
protected final java.util.List<SignatureVerification> verifiedPrependedSignatures
-
rejectedPrependedSignatures
protected final java.util.List<SignatureVerification.Failure> rejectedPrependedSignatures
-
child
protected MessageMetadata.Nested child
-
-
Method Detail
-
getChild
@Nullable public MessageMetadata.Nested getChild()
Return the nested child element of this layer. Might returnnull
, if this layer does not have a child element (e.g. if this is aMessageMetadata.LiteralData
packet).- Returns:
- child element
-
getVerifiedDetachedSignatures
public java.util.List<SignatureVerification> getVerifiedDetachedSignatures()
Return a list of all verified detached signatures of this layer.- Returns:
- all verified detached signatures of this layer
-
getRejectedDetachedSignatures
public java.util.List<SignatureVerification.Failure> getRejectedDetachedSignatures()
Return a list of all rejected detached signatures of this layer.- Returns:
- all rejected detached signatures of this layer
-
getVerifiedOnePassSignatures
public java.util.List<SignatureVerification> getVerifiedOnePassSignatures()
Return a list of all verified one-pass-signatures of this layer.- Returns:
- all verified one-pass-signatures of this layer
-
getRejectedOnePassSignatures
public java.util.List<SignatureVerification.Failure> getRejectedOnePassSignatures()
Return a list of all rejected one-pass-signatures of this layer.- Returns:
- all rejected one-pass-signatures of this layer
-
getVerifiedPrependedSignatures
public java.util.List<SignatureVerification> getVerifiedPrependedSignatures()
Return a list of all verified prepended signatures of this layer.- Returns:
- all verified prepended signatures of this layer
-
getRejectedPrependedSignatures
public java.util.List<SignatureVerification.Failure> getRejectedPrependedSignatures()
Return a list of all rejected prepended signatures of this layer.- Returns:
- all rejected prepended signatures of this layer
-
-