Codota Logo
Context
Code IndexAdd Codota to your IDE (free)

How to use
Context
in
eu.europa.esig.dss.validation.policy

Best Java code snippets using eu.europa.esig.dss.validation.policy.Context (Showing top 10 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: esig/dss

public static String print(Context v) {
  if (v != null) {
    return v.name();
  }
  return null;
}
origin: esig/dss

private XmlSAV executeSignatureAcceptanceValidation() {
  AbstractAcceptanceValidation<?> aav = null;
  if (Context.SIGNATURE.equals(context) || Context.COUNTER_SIGNATURE.equals(context)) {
    aav = new SignatureAcceptanceValidation(diagnosticData, currentTime, (SignatureWrapper) token, context, policy);
  } else if (Context.TIMESTAMP.equals(context)) {
    aav = new TimestampAcceptanceValidation(diagnosticData, currentTime, (TimestampWrapper) token, policy);
  } else if (Context.REVOCATION.equals(context)) {
    aav = new RevocationAcceptanceValidation(diagnosticData, currentTime, (RevocationWrapper) token, policy);
  }
  return aav != null ? aav.execute() : null;
}
origin: esig/dss

public static Context parse(String v) {
  if (v != null) {
    return Context.valueOf(v);
  }
  return null;
}
origin: open-eid/digidoc4j

private DigiDoc4JException getExcetpions(XmlName xmlName, String typeId, Context type) {
 String nameId = xmlName.getNameId();
 String value = xmlName.getValue();
 return new DigiDoc4JException("Block Id: " + typeId + ". Type = " +  type.name() + ". " + nameId + ": " +
   value);
}
origin: esig/dss

private XmlCV executeCryptographicVerification() {
  if (!Context.CERTIFICATE.equals(context)) {
    CryptographicVerification cv = new CryptographicVerification(diagnosticData, token, context, policy);
    return cv.execute();
  } else {
    return null;
  }
}
origin: esig/dss

private XmlISC executeIdentificationOfTheSigningCertificate() {
  if (!Context.CERTIFICATE.equals(context)) {
    IdentificationOfTheSigningCertificate isc = new IdentificationOfTheSigningCertificate(diagnosticData, token, context, policy);
    return isc.execute();
  } else {
    return null;
  }
}
origin: esig/dss

private XmlFC executeFormatChecking() {
  if (Context.SIGNATURE.equals(context)) {
    FormatChecking fc = new FormatChecking(diagnosticData, (SignatureWrapper) token, context, policy);
    return fc.execute();
  } else {
    return null;
  }
}
origin: esig/dss

private XmlVCI executeValidationContextInitialization() {
  if (Context.SIGNATURE.equals(context)) {
    ValidationContextInitialization vci = new ValidationContextInitialization((SignatureWrapper) token, context, policy);
    return vci.execute();
  }
  return null;
}
origin: esig/dss

private XmlXCV executeX509CertificateValidation() {
  if (Context.CERTIFICATE.equals(context)) {
    CertificateWrapper certificate = (CertificateWrapper) token;
    X509CertificateValidation xcv = new X509CertificateValidation(diagnosticData, certificate, currentTime, certificate.getNotBefore(), context,
        policy);
    return xcv.execute();
  } else {
    CertificateWrapper certificate = diagnosticData.getUsedCertificateById(token.getSigningCertificateId());
    if (certificate != null) {
      if (Context.SIGNATURE.equals(context) || Context.COUNTER_SIGNATURE.equals(context)) {
        X509CertificateValidation xcv = new X509CertificateValidation(diagnosticData, certificate, currentTime, certificate.getNotBefore(), context,
            policy);
        return xcv.execute();
      } else if (Context.TIMESTAMP.equals(context)) {
        X509CertificateValidation xcv = new X509CertificateValidation(diagnosticData, certificate, currentTime,
            ((TimestampWrapper) token).getProductionTime(), context, policy);
        return xcv.execute();
      } else if (Context.REVOCATION.equals(context)) {
        X509CertificateValidation xcv = new X509CertificateValidation(diagnosticData, certificate, currentTime,
            ((RevocationWrapper) token).getProductionDate(), context, policy);
        return xcv.execute();
      }
    }
  }
  return null;
}
origin: esig/dss

if (Context.SIGNATURE.equals(context) || Context.COUNTER_SIGNATURE.equals(context)) {
eu.europa.esig.dss.validation.policyContext

Most used methods

  • name
  • equals
  • valueOf

Popular in Java

  • Running tasks concurrently on multiple threads
  • addToBackStack (FragmentTransaction)
  • setContentView (Activity)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now