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 intgetPublicKeySize(PublicKey publicKey) This method returns the public key size extracted from public key infrastructure.static StringgetStringPublicKeySize(Token token) This method returns a key length used to sign this token.static StringgetStringPublicKeySize(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
-