getEncoded() — netty Function Reference
Architecture documentation for the getEncoded() function in Signed.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD a64ae8fb_b477_7e1d_867a_8bb8765f6746["getEncoded()"] b1f90d6b_16aa_bb9c_ea66_e5925cfae68a["Signed"] a64ae8fb_b477_7e1d_867a_8bb8765f6746 -->|defined in| b1f90d6b_16aa_bb9c_ea66_e5925cfae68a cf6100f1_ac4f_2fae_6769_340f39f8f220["InputStream()"] cf6100f1_ac4f_2fae_6769_340f39f8f220 -->|calls| a64ae8fb_b477_7e1d_867a_8bb8765f6746 style a64ae8fb_b477_7e1d_867a_8bb8765f6746 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
pkitesting/src/main/java/io/netty/pkitesting/Signed.java lines 52–67
byte[] getEncoded(Provider provider) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
Signature signature = Algorithms.signature(algorithmIdentifier, provider);
signature.initSign(privateKey);
signature.update(toBeSigned);
byte[] signatureBytes = signature.sign();
try {
return new DERSequence(new ASN1Encodable[]{
ASN1Primitive.fromByteArray(toBeSigned),
new AlgorithmIdentifier(new ASN1ObjectIdentifier(
Algorithms.oidForAlgorithmName(algorithmIdentifier))),
new DERBitString(signatureBytes)
}).getEncoded("DER");
} catch (IOException e) {
throw new UncheckedIOException(e);
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getEncoded() do?
getEncoded() is a function in the netty codebase, defined in pkitesting/src/main/java/io/netty/pkitesting/Signed.java.
Where is getEncoded() defined?
getEncoded() is defined in pkitesting/src/main/java/io/netty/pkitesting/Signed.java at line 52.
What calls getEncoded()?
getEncoded() is called by 1 function(s): InputStream.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free