xades4j.verification
Class DataObjectFormatMismatchException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by xades4j.XAdES4jException
              extended by xades4j.verification.InvalidSignatureException
                  extended by xades4j.verification.InvalidPropertyException
                      extended by xades4j.verification.DataObjectFormatVerificationException
                          extended by xades4j.verification.DataObjectFormatMismatchException
All Implemented Interfaces:
Serializable

public class DataObjectFormatMismatchException
extends DataObjectFormatVerificationException

Thrown during validation of the DataObjectFormat property if the corresponding Reference references an Object and mime-type and/or encoding in the property an in the Object are not equal.

Author:
Luís
See Also:
Serialized Form

Constructor Summary
DataObjectFormatMismatchException(String mimeType, String encoding, org.apache.xml.security.signature.Reference ref, org.apache.xml.security.signature.ObjectContainer obj)
           
 
Method Summary
 String getEncoding()
           
 String getMimeType()
           
 org.apache.xml.security.signature.ObjectContainer getObject()
           
 org.apache.xml.security.signature.Reference getReference()
           
protected  String getVerificationMessage()
           
 
Methods inherited from class xades4j.verification.DataObjectFormatVerificationException
getPropertyName
 
Methods inherited from class xades4j.verification.InvalidPropertyException
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

DataObjectFormatMismatchException

public DataObjectFormatMismatchException(String mimeType,
                                         String encoding,
                                         org.apache.xml.security.signature.Reference ref,
                                         org.apache.xml.security.signature.ObjectContainer obj)
Method Detail

getMimeType

public String getMimeType()

getEncoding

public String getEncoding()

getObject

public org.apache.xml.security.signature.ObjectContainer getObject()

getReference

public org.apache.xml.security.signature.Reference getReference()

getVerificationMessage

protected String getVerificationMessage()
Specified by:
getVerificationMessage in class InvalidPropertyException


Copyright © 2012. All Rights Reserved.