@Override public boolean check(final CertificateToken certificateToken){
  if (certificateToken == null) {
    throw new NullPointerException();
  }
  List<String> contextPolicyIdentifiers=DSSASN1Utils.getPolicyIdentifiers(certificateToken);
  return contextPolicyIdentifiers.contains(policyOid);
}

@ Override public boolean check ( final CertificateToken certificateToken ) { if ( certificateToken == null ) { throw new NullPointerException ( ) ; } List < String > contextPolicyIdentifiers = DSSASN1Utils . getPolicyIdentifiers ( certificateToken ) ; return contextPolicyIdentifiers . contains ( policyOid ) ; }
checks the condition for the given certificate .
