Bouncy Castle Cryptography Library 1.87

org.bouncycastle.crypto.constraints
Class LoggingConstraint

java.lang.Object
  extended byorg.bouncycastle.crypto.constraints.ServicesConstraint
      extended byorg.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.


Field Summary
 
Fields inherited from class org.bouncycastle.crypto.constraints.ServicesConstraint
LOG
 
Constructor Summary
LoggingConstraint()
          Log every service.
LoggingConstraint(java.util.Set exceptions)
          Log every service other than those named in the exceptions set.
 
Method Summary
 void check(CryptoServiceProperties service)
           
 
Methods inherited from class org.bouncycastle.crypto.constraints.ServicesConstraint
isException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

check

public void check(CryptoServiceProperties service)

Bouncy Castle Cryptography Library 1.87