org.bouncycastle.crypto.constraints
Class LoggingConstraint
java.lang.Object
org.bouncycastle.crypto.constraints.ServicesConstraint
org.bouncycastle.crypto.constraints.LoggingConstraint
- All Implemented Interfaces:
- CryptoServicesConstraints
- public class LoggingConstraint
- extends ServicesConstraint
A constraint that refuses nothing and logs every service checked against it, at level INFO,
with its name, bits of security and purpose. The log is written through the
Logger named for ServicesConstraint.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoggingConstraint
public LoggingConstraint()
- Log every service.
LoggingConstraint
public LoggingConstraint(java.util.Set exceptions)
- Log every service other than those named in the exceptions set.
- Parameters:
exceptions - set of service names which are not logged.
check
public void check(CryptoServiceProperties service)