/** * Returns the security handler specified in the dictionary's Filter entry. * @return a security handler instance * @throws IOException if there is no security handler available which matches the Filter */ public SecurityHandler getSecurityHandler() throws IOException { if (securityHandler == null) { throw new IOException("No security handler for filter " + getFilter()); } return securityHandler; }
/** * creates a new encryption dictionary from the low level dictionary provided. * @param dictionary a COS encryption dictionary */ public PDEncryption(COSDictionary dictionary) { this.dictionary = dictionary; securityHandler = SecurityHandlerFactory.INSTANCE.newSecurityHandlerForFilter(getFilter()); }
@Override public String getFilter() { if (encryption != null) { return encryption.getFilter(); } return null; }
/** * Returns the security handler specified in the dictionary's Filter entry. * @return a security handler instance * @throws IOException if there is no security handler available which matches the Filter */ public SecurityHandler getSecurityHandler() throws IOException { if (securityHandler == null) { throw new IOException("No security handler for filter " + getFilter()); } return securityHandler; }
/** * Returns the security handler specified in the dictionary's Filter entry. * @return a security handler instance * @throws IOException if there is no security handler available which matches the Filter */ public SecurityHandler getSecurityHandler() throws IOException { if (securityHandler == null) { throw new IOException("No security handler for filter " + getFilter()); } return securityHandler; }
/** * creates a new encryption dictionary from the low level dictionary provided. * @param dictionary a COS encryption dictionary */ public PDEncryption(COSDictionary dictionary) { this.dictionary = dictionary; securityHandler = SecurityHandlerFactory.INSTANCE.newSecurityHandlerForFilter(getFilter()); }
/** * creates a new encryption dictionary from the low level dictionary provided. * @param dictionary a COS encryption dictionary */ public PDEncryption(COSDictionary dictionary) { this.dictionary = dictionary; securityHandler = SecurityHandlerFactory.INSTANCE.newSecurityHandlerForFilter(getFilter()); }