xades4j.verification
Class InvalidFormExtensionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by xades4j.XAdES4jException
              extended by xades4j.verification.InvalidFormExtensionException
All Implemented Interfaces:
Serializable

public class InvalidFormExtensionException
extends XAdES4jException

Thrown during signature verification (with form extension) when the form transition is invalid. For instance, XAdES-BES -> XAdES-X is invalid.

Author:
Luís
See Also:
XadesVerifier, Serialized Form

Constructor Summary
InvalidFormExtensionException(XAdESForm actualForm, XAdESForm finalForm)
           
 
Method Summary
 XAdESForm getActualForm()
          Gets the form of the signature that was being extended.
 XAdESForm getFinalForm()
          Gets the desired signature form.
 String getMessage()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvalidFormExtensionException

public InvalidFormExtensionException(XAdESForm actualForm,
                                     XAdESForm finalForm)
Method Detail

getActualForm

public XAdESForm getActualForm()
Gets the form of the signature that was being extended.

Returns:
the form

getFinalForm

public XAdESForm getFinalForm()
Gets the desired signature form.

Returns:
the form

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable


Copyright © 2012. All Rights Reserved.