public class CertificateEnrollmentClient extends java.lang.Object implements CredentialsDialog.Callback, EnrollmentDialog.Callback
Modifier and Type | Class and Description |
---|---|
static interface |
CertificateEnrollmentClient.CertificateEnrollmentCompleteCallback |
static class |
CertificateEnrollmentClient.CertificateEnrollmentStatus |
Modifier and Type | Field and Description |
---|---|
static int |
REQUEST_TYPE_CERTIFICATE_CONFIG |
static int |
REQUEST_TYPE_CERTIFICATE_SIGNING |
protected static java.lang.String |
TAG |
Modifier and Type | Method and Description |
---|---|
void |
enroll(android.content.Context context,
java.lang.String desc,
java.lang.String connectString,
java.lang.String cacheCreds,
java.lang.Long expiration,
CertificateEnrollmentClient.CertificateEnrollmentCompleteCallback certificateEnrollmentCompleteCallback,
boolean getProfile) |
void |
enroll(android.content.Context context,
java.lang.String desc,
java.lang.String connectString,
java.lang.String cacheCreds,
java.lang.Long expiration,
CertificateEnrollmentClient.CertificateEnrollmentCompleteCallback certificateEnrollmentCompleteCallback,
boolean getProfile,
boolean isQuickConnect) |
void |
executeDeviceProfileRequest(CertificateSigningRequest request)
The enrollment succeeded, force check for the enrollment profile
|
void |
executeSigningRequest(CertificateSigningRequest request) |
static CertificateEnrollmentClient |
getInstance() |
void |
onCredentialsCancelled(java.lang.String connectString) |
void |
onCredentialsEntered(java.lang.String connectString,
java.lang.String cacheCreds,
java.lang.String description,
java.lang.String username,
java.lang.String password,
java.lang.Long expiration) |
void |
onEnrollmentCancel() |
void |
onEnrollmentOk(android.content.Context context,
java.lang.String address,
java.lang.String cacheCreds,
java.lang.String description,
java.lang.String username,
java.lang.String password,
java.lang.Long expiration) |
void |
onRequestConnectionError(Request request,
RequestManager.ConnectionError ce) |
void |
onRequestCustomError(Request request,
android.os.Bundle resultData) |
void |
onRequestDataError(Request request) |
void |
onRequestFinished(Request request,
android.os.Bundle resultData) |
protected static final java.lang.String TAG
public static final int REQUEST_TYPE_CERTIFICATE_CONFIG
public static final int REQUEST_TYPE_CERTIFICATE_SIGNING
public static CertificateEnrollmentClient getInstance()
public void enroll(android.content.Context context, java.lang.String desc, java.lang.String connectString, java.lang.String cacheCreds, java.lang.Long expiration, CertificateEnrollmentClient.CertificateEnrollmentCompleteCallback certificateEnrollmentCompleteCallback, boolean getProfile)
public void enroll(android.content.Context context, java.lang.String desc, java.lang.String connectString, java.lang.String cacheCreds, java.lang.Long expiration, CertificateEnrollmentClient.CertificateEnrollmentCompleteCallback certificateEnrollmentCompleteCallback, boolean getProfile, boolean isQuickConnect)
public void onCredentialsEntered(java.lang.String connectString, java.lang.String cacheCreds, java.lang.String description, java.lang.String username, java.lang.String password, java.lang.Long expiration)
onCredentialsEntered
in interface CredentialsDialog.Callback
public void onCredentialsCancelled(java.lang.String connectString)
onCredentialsCancelled
in interface CredentialsDialog.Callback
public void executeSigningRequest(CertificateSigningRequest request)
public void executeDeviceProfileRequest(CertificateSigningRequest request)
request
- the certificate signing request to use.public void onRequestFinished(Request request, android.os.Bundle resultData)
public void onRequestConnectionError(Request request, RequestManager.ConnectionError ce)
public void onRequestDataError(Request request)
public void onRequestCustomError(Request request, android.os.Bundle resultData)
public void onEnrollmentOk(android.content.Context context, java.lang.String address, java.lang.String cacheCreds, java.lang.String description, java.lang.String username, java.lang.String password, java.lang.Long expiration)
onEnrollmentOk
in interface EnrollmentDialog.Callback
public void onEnrollmentCancel()
onEnrollmentCancel
in interface EnrollmentDialog.Callback