public class EnrollmentManager extends Object
Modifier and Type | Method and Description |
---|---|
void |
beginEnrollmentFlow()
Method to control the entire enrollment flow.
|
static EnrollmentManager |
getInstance()
Method to return the current singleton instance of the EnrollmentManager.
|
PrivateKey |
getPrivateKey()
Gets the Private-Key of the client.
|
PublicKey |
getPublicKey()
Gets the Public-Key of the client.
|
X509Certificate |
getSCEPCertificate()
Gets the SCEP-Certificate of the client.
|
PublicKey |
getServerPublicKey()
Gets the Public-Key of the Server.
|
boolean |
isEnrolled()
Checks whether the device has already been enrolled with the SCEP Server.
|
public static EnrollmentManager getInstance()
public void beginEnrollmentFlow() throws AgentCoreOperationException
AgentCoreOperationException
- if the private method generateCertSignRequest() fails with an error or if
there is an error creating a self-sign certificate to present to the
server (whilst trying to get the CSR signed)public PublicKey getPublicKey()
public PrivateKey getPrivateKey()
public X509Certificate getSCEPCertificate()
public PublicKey getServerPublicKey()
public boolean isEnrolled()
Copyright © 2017 WSO2. All rights reserved.