Class DSSPKUtils

java.lang.Object
eu.europa.esig.dss.validation.DSSPKUtils

public final class DSSPKUtils extends Object
Utils to retrieve public key size
  • Method Details

    • getStringPublicKeySize

      public static String getStringPublicKeySize(Token token)
      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

      public static String getStringPublicKeySize(PublicKey publicKey)
      This method returns a key length extracted from the public key.
      Parameters:
      publicKey - PublicKey to be checked
      Returns:
      String key size
    • getPublicKeySize

      public static int getPublicKeySize(PublicKey publicKey)
      This method returns the public key size extracted from public key infrastructure.
      Parameters:
      publicKey - PublicKey
      Returns:
      the key length