| Modifier and Type | Class and Description |
|---|---|
| private static record | SignerInfo.
A map containing the algorithms in this SignerInfo. |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| pack-priv PKCS9Attributes | |
| pack-priv BigInteger | |
| private static final Debug | |
| pack-priv AlgorithmId | |
| pack-priv AlgorithmId | |
| pack-priv byte[] | |
| private boolean | |
| pack-priv X500Name | |
| private static final DisabledAlgorithmConstraints | |
| pack-priv Timestamp | |
| pack-priv PKCS9Attributes | |
| pack-priv BigInteger |
| Access | Constructor and Description |
|---|---|
| public | SignerInfo(X500Name issuerName, BigInteger serial, AlgorithmId digestAlgorithmId, AlgorithmId digestEncryptionAlgorithmId, byte[] encryptedDigest)
|
| public | SignerInfo(X500Name issuerName, BigInteger serial, AlgorithmId digestAlgorithmId, PKCS9Attributes authenticatedAttributes, AlgorithmId digestEncryptionAlgorithmId, byte[] encryptedDigest, PKCS9Attributes unauthenticatedAttributes)
|
| public | |
| public | SignerInfo(DerInputStream
the ASN.1 encoding of the signer info. derin, boolean flag indicating whether the given signer info
is encoded according to JDK1.1.x. oldStyle)Parses a PKCS#7 signer info. |
| Modifier and Type | Method and Description |
|---|---|
| private static void | algorithmsConformanceCheck(AlgorithmId
the digest algorithm digAlgId, AlgorithmId the encryption algorithm encAlgId, PublicKey the public key for verification key, boolean whether the signature is calculated on the content
directly. This makes difference for Ed448. directSign)Checks if the digest algorithm and encryption algorithm combination inside a PKCS7 SignerInfo is legal. |
| private void | |
| public void | encode(DerOutputStream
the output stream on which to write the DER encoding. out)Implements sun. DER encode this object onto an output stream. |
| public PKCS9Attributes | |
| public X509Certificate | |
| public ArrayList | |
| public BigInteger | |
| public AlgorithmId | |
| public AlgorithmId | |
| public byte[] | |
| public X500Name | |
| public Timestamp | |
| public PKCS7 | |
| public PKCS9Attributes | |
| public BigInteger | |
| public static String | makeSigAlg(AlgorithmId
the digest algorithm digAlgId, AlgorithmId the encryption algorithm encAlgId)Derives the signature algorithm name from the digest algorithm and the encryption algorithm inside a PKCS7 SignerInfo. |
| public String | |
| pack-priv SignerInfo | Returns: null if verify fails, this signerInfo if verify succeeds.the PKCS7 object block, byte[] the content to verify against; read from block if null data, X509Certificate certificate to verify with; read from block if null cert)Verify this signerInfo in a PKCS7 block. |
| pack-priv SignerInfo | |
| public static Set | Returns: a set of algorithms that passed the checks and are not disabledarray of SignerInfos infos, JarConstraintsParameters constraint parameters params, String the name of the signer's PKCS7 file name)Verify all the algorithms in the array of SignerInfos against the constraints in the jdk.jar.disabledAlgorithms security property. |
| private void |
| algorithms | back to summary |
|---|---|
| private final Map<AlgorithmId, SignerInfo. | |
| authenticatedAttributes | back to summary |
|---|---|
| pack-priv PKCS9Attributes authenticatedAttributes | |
| certificateSerialNumber | back to summary |
|---|---|
| pack-priv BigInteger certificateSerialNumber | |
| debug | back to summary |
|---|---|
| private static final Debug debug | |
| digestAlgorithmId | back to summary |
|---|---|
| pack-priv AlgorithmId digestAlgorithmId | |
| digestEncryptionAlgorithmId | back to summary |
|---|---|
| pack-priv AlgorithmId digestEncryptionAlgorithmId | |
| encryptedDigest | back to summary |
|---|---|
| pack-priv byte[] encryptedDigest | |
| hasTimestamp | back to summary |
|---|---|
| private boolean hasTimestamp | |
| issuerName | back to summary |
|---|---|
| pack-priv X500Name issuerName | |
| JAR_DISABLED_CHECK | back to summary |
|---|---|
| private static final DisabledAlgorithmConstraints JAR_DISABLED_CHECK | |
| timestamp | back to summary |
|---|---|
| pack-priv Timestamp timestamp | |
| unauthenticatedAttributes | back to summary |
|---|---|
| pack-priv PKCS9Attributes unauthenticatedAttributes | |
| version | back to summary |
|---|---|
| pack-priv BigInteger version | |
| SignerInfo | back to summary |
|---|---|
| public SignerInfo(X500Name issuerName, BigInteger serial, AlgorithmId digestAlgorithmId, AlgorithmId digestEncryptionAlgorithmId, byte[] encryptedDigest) | |
| SignerInfo | back to summary |
|---|---|
| public SignerInfo(X500Name issuerName, BigInteger serial, AlgorithmId digestAlgorithmId, PKCS9Attributes authenticatedAttributes, AlgorithmId digestEncryptionAlgorithmId, byte[] encryptedDigest, PKCS9Attributes unauthenticatedAttributes) | |
| SignerInfo | back to summary |
|---|---|
| public SignerInfo(DerInputStream derin) throws IOException Parses a PKCS#7 signer info. | |
| SignerInfo | back to summary |
|---|---|
| public SignerInfo(DerInputStream derin, boolean oldStyle) throws IOException Parses a PKCS#7 signer info. This constructor is used only for backwards compatibility with PKCS#7 blocks that were generated using JDK1.1.x.
| |
| algorithmsConformanceCheck | back to summary |
|---|---|
| private static void algorithmsConformanceCheck(AlgorithmId digAlgId, AlgorithmId encAlgId, PublicKey key, boolean directSign) throws NoSuchAlgorithmException Checks if the digest algorithm and encryption algorithm combination inside a PKCS7 SignerInfo is legal.
| |
| checkCMSAlgorithmProtection | back to summary |
|---|---|
| private void checkCMSAlgorithmProtection() throws IOException | |
| encode | back to summary |
|---|---|
| public void encode(DerOutputStream out) Implements sun. DER encode this object onto an output stream.
Implements the
| |
| getAuthenticatedAttributes | back to summary |
|---|---|
| public PKCS9Attributes getAuthenticatedAttributes() | |
| getCertificate | back to summary |
|---|---|
| public X509Certificate getCertificate(PKCS7 block) throws IOException | |
| getCertificateChain | back to summary |
|---|---|
| public ArrayList | |
| getCertificateSerialNumber | back to summary |
|---|---|
| public BigInteger getCertificateSerialNumber() | |
| getDigestAlgorithmId | back to summary |
|---|---|
| public AlgorithmId getDigestAlgorithmId() | |
| getDigestEncryptionAlgorithmId | back to summary |
|---|---|
| public AlgorithmId getDigestEncryptionAlgorithmId() | |
| getEncryptedDigest | back to summary |
|---|---|
| public byte[] getEncryptedDigest() | |
| getIssuerName | back to summary |
|---|---|
| public X500Name getIssuerName() | |
| getTimestamp | back to summary |
|---|---|
| public Timestamp getTimestamp() throws IOException, NoSuchAlgorithmException, SignatureException, CertificateException | |
| getTsToken | back to summary |
|---|---|
| public PKCS7 getTsToken() throws IOException Returns the timestamp PKCS7 data unverified.
| |
| getUnauthenticatedAttributes | back to summary |
|---|---|
| public PKCS9Attributes getUnauthenticatedAttributes() | |
| getVersion | back to summary |
|---|---|
| public BigInteger getVersion() | |
| makeSigAlg | back to summary |
|---|---|
| public static String makeSigAlg(AlgorithmId digAlgId, AlgorithmId encAlgId) Derives the signature algorithm name from the digest algorithm and the encryption algorithm inside a PKCS7 SignerInfo. The digest algorithm is in the form "DIG", and the encryption algorithm can be in any of the 3 forms: 1. Simple key algorithm like RSA, DSA, EC, this method returns DIGwithKEY. 2. Traditional signature algorithm in the form of HASHwithKEY, this method returns DIGwithKEY. Please note this is not HASHwithKEY. 3. Modern signature algorithm like RSASSA-PSS and EdDSA, this method returns the signature algorithm itself.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| verify | back to summary |
|---|---|
| pack-priv SignerInfo verify(PKCS7 block, byte[] data, X509Certificate cert) throws NoSuchAlgorithmException, SignatureException Verify this signerInfo in a PKCS7 block.
| |
| verify | back to summary |
|---|---|
| pack-priv SignerInfo verify(PKCS7 block) throws NoSuchAlgorithmException, SignatureException | |
| verifyAlgorithms | back to summary |
|---|---|
| public static Set Verify all the algorithms in the array of SignerInfos against the constraints in the jdk.jar.disabledAlgorithms security property.
| |
| verifyTimestamp | back to summary |
|---|---|
| private void verifyTimestamp(TimestampToken token) throws NoSuchAlgorithmException, SignatureException | |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | checkKey
Record Component accessed by checkKey(). |
| private final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public String | |
| public final int | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| checkKey | back to summary |
|---|---|
| private final boolean checkKey Record Component accessed by checkKey(). | |
| field | back to summary |
|---|---|
| private final String field Record Component accessed by field(). | |
| AlgorithmInfo | back to summary |
|---|---|
| private AlgorithmInfo(String field, boolean checkKey) | |
| checkKey | back to summary |
|---|---|
| public boolean checkKey() Record Component getter of checkKey. | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| field | back to summary |
|---|---|
| public String field() Record Component getter of field. | |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |