|
Bouncy Castle Cryptography Library 1.87 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Finder for the AlgorithmIdentifier naming a key encapsulation
mechanism, as it appears in a SubjectPublicKeyInfo, a CMS KEMRecipientInfo
(RFC 9629) or a CMP KemCiphertextInfo.
This is the KEM counterpart of SignatureAlgorithmIdentifierFinder.
The reverse direction - naming an OID that arrived from a peer - is
DefaultAlgorithmNameFinder.
| Method Summary | |
org.bouncycastle.asn1.x509.AlgorithmIdentifier |
find(java.lang.String kemAlgName)
Find the KEM algorithm identifier that matches with the passed in KEM algorithm name. |
boolean |
hasAlgorithm(java.lang.String kemAlgName)
Return true if a KEM algorithm of the passed in name is recognised, false otherwise. |
| Method Detail |
public boolean hasAlgorithm(java.lang.String kemAlgName)
find(String) returns an
identifier; where it returns false throws, so this is the way
to test for support without catching.
kemAlgName - the name of the KEM algorithm of interest.
public org.bouncycastle.asn1.x509.AlgorithmIdentifier find(java.lang.String kemAlgName)
find in interface AlgorithmIdentifierFinderkemAlgName - the name of the KEM algorithm of interest.
java.lang.IllegalArgumentException - if the name is not recognised.
|
Bouncy Castle Cryptography Library 1.87 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||