public class KeyUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getFingerPrint(java.security.PublicKey key)
Retrieve the public key fingerprint
|
static java.lang.String |
getKeyType(java.security.Key key)
Retrieve the key type
|
static java.lang.String |
getKeyType(java.security.KeyPair kp)
Retrieve the key type
|
public static java.lang.String getFingerPrint(java.security.PublicKey key)
key - the public keypublic static java.lang.String getKeyType(java.security.KeyPair kp)
kp - a key pairpublic static java.lang.String getKeyType(java.security.Key key)
key - a public or private keyCopyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.