Constructs a KerberosKey from the given bytes when the key type and
key version number are known. This can be used when reading the secret
key information from a Kerberos "keytab".
Parameters:
-
principal - the principal that this secret key belongs to
-
keyBytes - the raw bytes for the secret key
-
keyType - the key type for the secret key as defined by the
Kerberos protocol specification.
-
versionNum - the version number of this secret key