createKeySpecForAlgorithm() — spring-boot Function Reference
Architecture documentation for the createKeySpecForAlgorithm() function in PemPrivateKeyParser.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 1192d76c_2cb5_4289_ead7_7175f0867445["createKeySpecForAlgorithm()"] 27da7f2c_c33d_0cab_4d0e_5f29a4a284db["createKeySpecForPkcs1Rsa()"] 27da7f2c_c33d_0cab_4d0e_5f29a4a284db -->|calls| 1192d76c_2cb5_4289_ead7_7175f0867445 3ec5bf80_7c44_d0c9_be14_961b40d5ef6a["createKeySpecForSec1Ec()"] 3ec5bf80_7c44_d0c9_be14_961b40d5ef6a -->|calls| 1192d76c_2cb5_4289_ead7_7175f0867445 516ce615_3b70_0efc_5ae3_a3cd320e701c["integer()"] 1192d76c_2cb5_4289_ead7_7175f0867445 -->|calls| 516ce615_3b70_0efc_5ae3_a3cd320e701c e3e26f97_110a_1a9a_b87f_2c4111e4797e["objectIdentifier()"] 1192d76c_2cb5_4289_ead7_7175f0867445 -->|calls| e3e26f97_110a_1a9a_b87f_2c4111e4797e a78bd132_620d_5d6d_a1e9_30244685a2a6["sequence()"] 1192d76c_2cb5_4289_ead7_7175f0867445 -->|calls| a78bd132_620d_5d6d_a1e9_30244685a2a6 f04f2aa0_df4b_514a_38b4_f8285b1ccb71["octetString()"] 1192d76c_2cb5_4289_ead7_7175f0867445 -->|calls| f04f2aa0_df4b_514a_38b4_f8285b1ccb71 53dce7ae_68c2_8782_1035_c23c267b9591["toSequence()"] 1192d76c_2cb5_4289_ead7_7175f0867445 -->|calls| 53dce7ae_68c2_8782_1035_c23c267b9591 22300bf1_ea98_babd_bb65_c4291ee0698a["toByteArray()"] 1192d76c_2cb5_4289_ead7_7175f0867445 -->|calls| 22300bf1_ea98_babd_bb65_c4291ee0698a style 1192d76c_2cb5_4289_ead7_7175f0867445 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/ssl/pem/PemPrivateKeyParser.java lines 150–165
private static PKCS8EncodedKeySpec createKeySpecForAlgorithm(byte[] bytes, EncodedOid algorithm,
@Nullable EncodedOid parameters) {
try {
DerEncoder encoder = new DerEncoder();
encoder.integer(0x00); // Version 0
DerEncoder algorithmIdentifier = new DerEncoder();
algorithmIdentifier.objectIdentifier(algorithm);
algorithmIdentifier.objectIdentifier(parameters);
encoder.sequence(algorithmIdentifier.toByteArray());
encoder.octetString(bytes);
return new PKCS8EncodedKeySpec(encoder.toSequence());
}
catch (IOException ex) {
throw new IllegalStateException(ex);
}
}
Domain
Subdomains
Calls
Called By
- createKeySpecForPkcs1Rsa()
- createKeySpecForSec1Ec()
Source
Frequently Asked Questions
What does createKeySpecForAlgorithm() do?
createKeySpecForAlgorithm() is a function in the spring-boot codebase.
What does createKeySpecForAlgorithm() call?
createKeySpecForAlgorithm() calls 6 function(s): integer, objectIdentifier, octetString, sequence, toByteArray, toSequence.
What calls createKeySpecForAlgorithm()?
createKeySpecForAlgorithm() is called by 2 function(s): createKeySpecForPkcs1Rsa, createKeySpecForSec1Ec.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free