Class RecipientInformationBC

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.bouncycastle.cms.RecipientInformation recipientInformation  
    • Constructor Summary

      Constructors 
      Constructor Description
      RecipientInformationBC​(org.bouncycastle.cms.RecipientInformation recipientInformation)
      Creates new wrapper instance for RecipientInformation.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)
      Indicates whether some other object is "equal to" this one.
      byte[] getContent​(IRecipient recipient)
      Calls actual getContent method for the wrapped RecipientInformation object.
      org.bouncycastle.cms.RecipientInformation getRecipientInformation()
      Gets actual org.bouncycastle object being wrapped.
      IRecipientId getRID()
      Calls actual getRID method for the wrapped RecipientInformation object.
      int hashCode()
      Returns a hash code value based on the wrapped object.
      java.lang.String toString()
      Delegates toString method call to the wrapped object.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • recipientInformation

        private final org.bouncycastle.cms.RecipientInformation recipientInformation
    • Constructor Detail

      • RecipientInformationBC

        public RecipientInformationBC​(org.bouncycastle.cms.RecipientInformation recipientInformation)
        Creates new wrapper instance for RecipientInformation.
        Parameters:
        recipientInformation - RecipientInformation to be wrapped
    • Method Detail

      • getRecipientInformation

        public org.bouncycastle.cms.RecipientInformation getRecipientInformation()
        Gets actual org.bouncycastle object being wrapped.
        Returns:
        wrapped RecipientInformation.
      • getContent

        public byte[] getContent​(IRecipient recipient)
                          throws CMSExceptionBC
        Calls actual getContent method for the wrapped RecipientInformation object.
        Specified by:
        getContent in interface IRecipientInformation
        Parameters:
        recipient - wrapper for recipient object to use to recover content encryption key
        Returns:
        the content inside the EnvelopedData this RecipientInformation is associated with.
        Throws:
        CMSExceptionBC
      • equals

        public boolean equals​(java.lang.Object o)
        Indicates whether some other object is "equal to" this one. Compares wrapped objects.
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Returns a hash code value based on the wrapped object.
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Delegates toString method call to the wrapped object.
        Overrides:
        toString in class java.lang.Object