Class AbstractRecipient

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void checkTagSize​(org.bouncycastle.asn1.x509.AlgorithmIdentifier contentAlgorithm)
      Refuse an AEAD content algorithm whose authentication tag is shorter than the configured minimum.
      protected boolean isContentAlgorithmAllowed​(org.bouncycastle.asn1.ASN1ObjectIdentifier contentAlgorithm)  
      protected void setAllowedContentAlgorithmSet​(java.util.Set<org.bouncycastle.asn1.ASN1ObjectIdentifier> allowedContentAlgorithms)  
      protected void setMinimumTagSizeInBits​(int tagSizeInBits)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractRecipient

        public AbstractRecipient()
    • Method Detail

      • setAllowedContentAlgorithmSet

        protected final void setAllowedContentAlgorithmSet​(java.util.Set<org.bouncycastle.asn1.ASN1ObjectIdentifier> allowedContentAlgorithms)
      • isContentAlgorithmAllowed

        protected final boolean isContentAlgorithmAllowed​(org.bouncycastle.asn1.ASN1ObjectIdentifier contentAlgorithm)
      • setMinimumTagSizeInBits

        protected final void setMinimumTagSizeInBits​(int tagSizeInBits)
      • checkTagSize

        protected final void checkTagSize​(org.bouncycastle.asn1.x509.AlgorithmIdentifier contentAlgorithm)
                                   throws CMSTagLengthException
        Refuse an AEAD content algorithm whose authentication tag is shorter than the configured minimum. A no-op when no minimum is set or when the content algorithm is not AEAD.
        Parameters:
        contentAlgorithm - the content-encryption AlgorithmIdentifier (carries the AEAD ICV length).
        Throws:
        CMSTagLengthException - if the tag size is below the configured minimum.