Package org.keycloak.crypto
Interface SignatureSignerContext
- All Known Implementing Classes:
AsymmetricSignatureSignerContext,ECDSASignatureSignerContext,MacSignatureSignerContext,ServerAsymmetricSignatureSignerContext,ServerECDSASignatureSignerContext,ServerEdDSASignatureSignerContext,ServerMacSignatureSignerContext
public interface SignatureSignerContext
-
Method Summary
Modifier and TypeMethodDescriptiondefault List<X509Certificate>Returns the X.509 certificate chain associated with this signer, if available.getKid()byte[]sign(byte[] data)
-
Method Details
-
getKid
String getKid() -
getAlgorithm
String getAlgorithm() -
getHashAlgorithm
String getHashAlgorithm() -
sign
- Throws:
SignatureException
-
getCertificateChain
Returns the X.509 certificate chain associated with this signer, if available. Returns null if certificates are not available (e.g., for MAC-based signers). This allows access to certificates without requiring a separate KeyWrapper parameter.- Returns:
- List of X.509 certificates, or null if not available
-