public class EnrollmentRequest extends Object
Modifier and Type | Class and Description |
---|---|
class |
EnrollmentRequest.AttrReq |
Constructor and Description |
---|
EnrollmentRequest() |
EnrollmentRequest(String profile,
String label,
KeyPair keypair)
EnrollmentRequest All the fields are optional
|
Modifier and Type | Method and Description |
---|---|
void |
addAttrReq()
Add attribute request to ensure no attributes are in the certificate - not even default ones.
|
EnrollmentRequest.AttrReq |
addAttrReq(String name)
Add attribute to certificate.
|
void |
addHost(String host) |
Collection<String> |
getHosts() |
String |
getLabel() |
String |
getProfile() |
void |
setCsr(String csr)
The certificate signing request if it's not supplied it will be generated.
|
void |
setKeyPair(KeyPair keypair)
The Key pair to create the signing certificate if not supplied it will be generated.
|
void |
setLabel(String label) |
void |
setProfile(String profile) |
public void setCsr(String csr)
csr
- public void setKeyPair(KeyPair keypair)
keypair
- public String getProfile()
public void setProfile(String profile)
public String getLabel()
public void setLabel(String label)
public Collection<String> getHosts()
public void addHost(String host)
public void addAttrReq() throws InvalidArgumentException
InvalidArgumentException
public EnrollmentRequest.AttrReq addAttrReq(String name) throws InvalidArgumentException
name
- Name of attribute.InvalidArgumentException
Copyright © 2020. All rights reserved.