javapns.communication.exceptions.InvalidCertificateChainException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of javapns Show documentation
Show all versions of javapns Show documentation
JavaPNS branch with refactoring of org.json package to a javapns.json pacakge
The newest version!
package javapns.communication.exceptions;
/**
* Thrown when we try to contact Apple with an invalid keystore or certificate chain.
* @author Sylvain Pedneault
*
*/
@SuppressWarnings("serial")
public class InvalidCertificateChainException extends KeystoreException {
/**
* Constructor
*/
public InvalidCertificateChainException() {
super("Invalid certificate chain! Verify that the keystore you provided was produced according to specs...");
}
/**
* Constructor with custom message
* @param message
*/
public InvalidCertificateChainException(String message) {
super("Invalid certificate chain (" + message + ")! Verify that the keystore you provided was produced according to specs...");
}
}