public final class ExtendedAlgorithmSupport extends Object
AlgorithmSupport class does not offer utility methods needed for key agreement. This class offers
such methods.| Modifier and Type | Method and Description |
|---|---|
static boolean |
isKeyAgreementAlgorithm(AlgorithmDescriptor algorithm)
Checks whether the supplied descriptor represents an algorithm that may be used for key agreement.
|
static boolean |
isKeyWrappingAlgorithm(AlgorithmDescriptor algorithm)
Checks whether the supplied descriptor represents an algorithm that my be used for key wrapping.
|
static boolean |
isRSAPSS(String signatureAlgorithm)
Predicate that tells whether the supplied algorithm is a RSA-PSS algorithm.
|
static boolean |
peerCredentialSupportsKeyAgreement(Credential credential)
Check whether the supplied peer credential may be used in a key agreement protocol.
|
public static boolean isRSAPSS(String signatureAlgorithm)
signatureAlgorithm - the algorithm to testtrue if the algorithm is a RSA-PSS algorithm, and false otherwisepublic static boolean isKeyWrappingAlgorithm(@Nullable AlgorithmDescriptor algorithm)
algorithm - the algorithm descriptor to evaluatetrue if the algorithm may be used for key wrapping, false otherwisepublic static boolean isKeyAgreementAlgorithm(@Nullable AlgorithmDescriptor algorithm)
algorithm - the algorithm descriptor to evaluatetrue if the algorithm may be used for key agreement, false otherwisepublic static boolean peerCredentialSupportsKeyAgreement(@Nullable Credential credential)
credential - the credential to testtrue if the credential may be used in a key agreement protocol, and false otherwiseCopyright © 2020 Sweden Connect. All rights reserved.