Package org.xipki.ca.gateway
Interface Requestor
-
- All Known Subinterfaces:
Requestor.CertRequestor,Requestor.PasswordRequestor,Requestor.SimplePasswordRequestor
public interface RequestorRequestor interface.- Since:
- 6.0.0
- Author:
- Lijun Liao (xipki)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceRequestor.CertRequestorCertificate-based requestor interface.static interfaceRequestor.PasswordRequestorPassword-based requestor interface.static classRequestor.Permissionstatic interfaceRequestor.SimplePasswordRequestorSimple password-based requestor interface, used for the CMP gateway.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetName()Returns the name of this requestor.booleanisCertprofilePermitted(String caName, String certprofile)Returns whether the requested certificate profile for given CA is allowed.booleanisPermitted(Requestor.Permission permission)Returns whether the requested permissions is allowed.
-
-
-
Method Detail
-
getName
String getName()
Returns the name of this requestor. Will not be used internally for any authentication. Only used for internal logging.- Returns:
- the name of this requestor.
-
isCertprofilePermitted
boolean isCertprofilePermitted(String caName, String certprofile)
Returns whether the requested certificate profile for given CA is allowed.- Parameters:
certprofile- the certprofile name.caName- the CA name.- Returns:
- true if allowed, false otherwise.
-
isPermitted
boolean isPermitted(Requestor.Permission permission)
Returns whether the requested permissions is allowed.- Parameters:
permission- the permission.- Returns:
- true if all requested permissions are allowed, false otherwise.
-
-