Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
What Is poi-5.2.3.jar?
What Is poi-5.2.3.jar?
✍: FYIcenter.com
poi-5.2.3.jar is one of the JAR files for Apache POI 5.2.3, which
provides an API for Microsoft document files of Word, Excel, PowerPoint, and Visio.
poi-5.2.3.jar supports Apache POI components that read and write Microsoft's OLE 2 Compound document format, which is used in early versions of Microsoft Office tools like Word 97, Excel 97, PowerPoint 97, etc.
poi-5.2.3.jar is distributed as part of the poi-bin-5.2.3-20220909.zip download file.
JAR File Size and Download Location:
JAR name: poi-5.2.3.jar Target JDK version: 9 File name: poi.jar, poi-5.2.3.jar File size: 2964641 bytes Release date: 09-09-2022 Download: Apache POI Website
Here are Java Source Code files for poi-5.2.3.jar:
⏎ org/apache/poi/poifs/crypt/agile/CertificateKeyEncryptor.java
/* ====================================================================
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
package org.apache.poi.poifs.crypt.agile;
import org.apache.poi.EncryptedDocumentException;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import static org.apache.poi.poifs.crypt.agile.EncryptionDocument.*;
public class CertificateKeyEncryptor {
/**
* A base64-encoded value that specifies the encrypted form of the intermediate key,
* which is encrypted with the public key contained within the X509Certificate attribute.
*/
private byte[] encryptedKeyValue;
/**
* A base64-encoded value that specifies a DER-encoded X.509 certificate (1) used to encrypt the intermediate key.
* The certificate (1) MUST contain only the public portion of the public-private key pair.
*/
private byte[] x509Certificate;
/**
* A base64-encoded value that specifies the HMAC of the binary data obtained by base64-decoding the X509Certificate
* attribute. The hashing algorithm used to derive the HMAC MUST be the hashing algorithm specified for the
* Encryption.keyData element. The secret key used to derive the HMAC MUST be the intermediate key. If the
* intermediate key is reset, any CertificateKeyEncryptor elements are also reset to contain the new intermediate
* key, except that the certVerifier attribute MUST match the value calculated using the current intermediate key,
* to verify that the CertificateKeyEncryptor element actually encrypted the current intermediate key. If a
* CertificateKeyEncryptor element does not have a correct certVerifier attribute, it MUST be discarded.
*/
private byte[] certVerifier;
public CertificateKeyEncryptor(Element certificateKey) {
if (certificateKey == null) {
throw new EncryptedDocumentException("Unable to parse encryption descriptor");
}
encryptedKeyValue = getBinAttr(certificateKey, "encryptedKeyValue");
x509Certificate = getBinAttr(certificateKey, "X509Certificate");
certVerifier = getBinAttr(certificateKey, "certVerifier");
}
void write(Element encryption) {
Document doc = encryption.getOwnerDocument();
Element keyEncryptor = (Element) encryption.appendChild(doc.createElementNS(ENC_NS, "keyEncryptor"));
keyEncryptor.setAttribute("uri", KeyEncryptor.CERT_NS);
Element encryptedKey = (Element) keyEncryptor.appendChild(doc.createElementNS(KeyEncryptor.CERT_NS, "c:encryptedKey"));
setBinAttr(encryptedKey, "encryptedKeyValue", encryptedKeyValue);
setBinAttr(encryptedKey, "x509Certificate", x509Certificate);
setBinAttr(encryptedKey, "certVerifier", certVerifier);
}
public byte[] getEncryptedKeyValue() {
return encryptedKeyValue;
}
public void setEncryptedKeyValue(byte[] encryptedKeyValue) {
this.encryptedKeyValue = encryptedKeyValue;
}
public byte[] getX509Certificate() {
return x509Certificate;
}
public void setX509Certificate(byte[] x509Certificate) {
this.x509Certificate = x509Certificate;
}
public byte[] getCertVerifier() {
return certVerifier;
}
public void setCertVerifier(byte[] certVerifier) {
this.certVerifier = certVerifier;
}
}
⏎ org/apache/poi/poifs/crypt/agile/CertificateKeyEncryptor.java
Or download all of them as a single archive file:
File name: poi-5.2.3-src.zip File size: 2479830 bytes Release date: 2022-09-09 Download
⇒ What Is poi-ooxml-5.2.3.jar?
⇐ What Is poi-bin-5.2.3-20220909.zip?
2017-04-04, ≈282🔥, 0💬
Popular Posts:
How to read XML document with DTD validation from socket connections with the socket\DelayedInput.ja.. .
What Is mail.jar of JavaMail 1.3? I got the JAR file from javamail-1_3.zip. mail.jar in javamail-1_3...
Where to find answers to frequently asked questions on Downloading and Installing ojdbc.jar - JDBC D...
commons-io-1.4.jar is the JAR file for Commons IO 1.4, which is a library of utilities to assist wit...
pache Derby is an open source relational database implemented entirely in Java and available under t...