Package eu.europa.esig.dss.validation
Class DSSPKUtils
java.lang.Object
eu.europa.esig.dss.validation.DSSPKUtils
public final class DSSPKUtils extends Object
-
Method Summary
Modifier and Type Method Description static StringgetPublicKeySize(Token token)This method returns a key length used to sign this token.static intgetPublicKeySize(PublicKey publicKey)This method returns the public key size extracted from public key infrastructure.
-
Method Details
-
getPublicKeySize
This method returns a key length used to sign this token.- Parameters:
token- the token (certificate, crl,...) to be checked- Returns:
- the used key size to sign the given token
-
getPublicKeySize
This method returns the public key size extracted from public key infrastructure.- Parameters:
publicKey- the public key- Returns:
- the key length
-