org.jscep.transport.request.GetCaCertRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jscep Show documentation
Show all versions of jscep Show documentation
Java implementation of the Simple Certificate Enrollment Protocol
package org.jscep.transport.request;
/**
* This class represents a GetCACert
request.
*/
public final class GetCaCertRequest extends Request {
private final String profile;
/**
* Creates a new GetCaCertRequest with the given CA profile.
*
* @param profile
* the CA profile to use.
*/
public GetCaCertRequest(final String profile) {
super(Operation.GET_CA_CERT);
this.profile = profile;
}
/**
* Creates a new GetCaCertRequest without a CA profile.
*/
public GetCaCertRequest() {
this(null);
}
/**
* {@inheritDoc}
*/
@Override
public String getMessage() {
if (profile == null) {
return "";
}
return profile;
}
/**
* {@inheritDoc}
*/
@Override
public String toString() {
if (profile != null) {
return "GetCACert(" + profile + ")";
} else {
return "GetCACert";
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy