Class AgileEncryptionVerifier

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class AgileEncryptionVerifier
    extends EncryptionVerifier
    implements java.lang.Cloneable
    Used when checking if a key is valid for a document
    • Constructor Detail

      • AgileEncryptionVerifier

        public AgileEncryptionVerifier​(java.lang.String descriptor)
      • AgileEncryptionVerifier

        protected AgileEncryptionVerifier​(com.microsoft.schemas.office.x2006.encryption.EncryptionDocument ed)
    • Method Detail

      • addCertificate

        public void addCertificate​(java.security.cert.X509Certificate x509)
      • getKeySize

        public int getKeySize()
        The keysize (in bits) of the verifier data. This usually equals the keysize of the header, but only on a few exceptions, like files generated by Office for Mac, can be different.
        Returns:
        the keysize (in bits) of the verifier.
      • getBlockSize

        public int getBlockSize()
        The blockSize (in bytes) of the verifier data. This usually equals the blocksize of the header.
        Returns:
        the blockSize (in bytes) of the verifier,
      • setKeySize

        protected void setKeySize​(int keyBits)
        Sets the keysize (in bits) of the verifier
        Parameters:
        keyBits - the keysize (in bits)
      • setBlockSize

        protected void setBlockSize​(int blockSize)
        Sets the blockSize (in bytes) of the verifier
        Parameters:
        blockSize - the blockSize (in bytes)