Package eu.europa.esig.dss.validation
Class DSSPKUtils
java.lang.Object
eu.europa.esig.dss.validation.DSSPKUtils
Utils to retrieve public key size
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
getPublicKeySize
(PublicKey publicKey) This method returns the public key size extracted from public key infrastructure.static String
getStringPublicKeySize
(Token token) This method returns a key length used to sign this token.static String
getStringPublicKeySize
(PublicKey publicKey) This method returns a key length extracted from the public key.
-
Method Details
-
getStringPublicKeySize
This method returns a key length used to sign this token.- Parameters:
token
-Token
(certificate, crl,...) to be checked- Returns:
- the used key size to sign the given token
-
getStringPublicKeySize
This method returns a key length extracted from the public key. -
getPublicKeySize
This method returns the public key size extracted from public key infrastructure.- Parameters:
publicKey
-PublicKey
- Returns:
- the key length
-