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 e7565588_320b_7a29_22b7_a11cc86051d6["createKeySpecForAlgorithm()"] ac9c8c81_a50f_5564_c031_18e30b6de429["createKeySpecForPkcs1Rsa()"] ac9c8c81_a50f_5564_c031_18e30b6de429 -->|calls| e7565588_320b_7a29_22b7_a11cc86051d6 dd17c9cd_3bc1_02ee_542a_6fff495594fe["createKeySpecForSec1Ec()"] dd17c9cd_3bc1_02ee_542a_6fff495594fe -->|calls| e7565588_320b_7a29_22b7_a11cc86051d6 fe73744f_3e98_68b3_afc8_6dc95cb2682f["integer()"] e7565588_320b_7a29_22b7_a11cc86051d6 -->|calls| fe73744f_3e98_68b3_afc8_6dc95cb2682f e69ae34c_86e4_ffb6_7795_fc369c14c0cb["objectIdentifier()"] e7565588_320b_7a29_22b7_a11cc86051d6 -->|calls| e69ae34c_86e4_ffb6_7795_fc369c14c0cb f42acbfe_ddab_013c_bbe2_efd83fd777f4["sequence()"] e7565588_320b_7a29_22b7_a11cc86051d6 -->|calls| f42acbfe_ddab_013c_bbe2_efd83fd777f4 26f4d44c_edfe_7944_618c_d4d4936fb5b8["octetString()"] e7565588_320b_7a29_22b7_a11cc86051d6 -->|calls| 26f4d44c_edfe_7944_618c_d4d4936fb5b8 d4b6bfd9_86ae_23d2_a562_3cdb989300cd["toSequence()"] e7565588_320b_7a29_22b7_a11cc86051d6 -->|calls| d4b6bfd9_86ae_23d2_a562_3cdb989300cd 7e52cb44_3ef5_cd5e_26a2_ed146f8c2ba3["toByteArray()"] e7565588_320b_7a29_22b7_a11cc86051d6 -->|calls| 7e52cb44_3ef5_cd5e_26a2_ed146f8c2ba3 style e7565588_320b_7a29_22b7_a11cc86051d6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/ssl/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
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