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 interfaceRequestor.SimplePasswordRequestorSimple password-based requestor interface, used for the CMP gateway.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetName()Returns the name of this requestor.booleanisCertprofilePermitted(java.lang.String caName, java.lang.String certprofile)Returns whether the requested certificate profile for given CA is allowed.booleanisPermitted(int permissions)Returns whether the requested permissions is allowed.
-
-
-
Method Detail
-
getName
java.lang.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(java.lang.String caName, java.lang.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(int permissions)
Returns whether the requested permissions is allowed.- Parameters:
permissions- the permissions. Defined inPermissionConstants, can be combined value of multiple permissions.- Returns:
- true if all requested permissions are allowed, false otherwise.
-
-