public final class UALUtil
extends java.lang.Object
UAL requires native code contained in the UALJNI library; this
library must be installed on the machine in order to use this class. UAL should
only be used on machines that are physically secured.
| Modifier and Type | Method and Description |
|---|---|
static void |
bind(SecureStringBuffer password,
java.io.OutputStream ual)
Binds the given password to the machine by generating an Entrust Unattended
Login (UAL) file.
|
static void |
bindJTK8Format(SecureStringBuffer password,
java.io.OutputStream ual)
Binds the given password using a UAL format that is compatible with Java Toolkit versions 8.x and previous.
|
static ExtractedUALData |
extractPassword(java.io.InputStream ual)
Extracts the password stored and protected in an Entrust Unattended Login
(UAL) file.
|
static byte[] |
getFingerprint(int i) |
static int |
getItemCount() |
static int |
getIterationCount(java.io.InputStream ual) |
public static void bind(SecureStringBuffer password, java.io.OutputStream ual) throws UALException
password - the password to be bound to the machineual - the output stream from which UAL file will be writtenUALException - if the bind operation failsjava.lang.SecurityException - if the Entrust CSP has not been installedpublic static void bindJTK8Format(SecureStringBuffer password, java.io.OutputStream ual) throws UALException
UALExceptionpublic static ExtractedUALData extractPassword(java.io.InputStream ual) throws UALException
ual - the input stream from which the UAL file can be readUALException - if the UAL file is invalid or corruptjava.lang.SecurityException - if the Entrust CSP has not been installedpublic static byte[] getFingerprint(int i)
public static int getItemCount()
public static int getIterationCount(java.io.InputStream ual)
throws UALException
UALException