/** * This will return the X509 certificate chain, if any, that * has been sent by the client. A certificate chain is typically * only send when the server explicitly requests the certificate * on the initial connection or when it is challenged for. * * @return this returns the clients X509 certificate chain */ public X509Certificate[] getChain() throws Exception { return certificate.getChain(); }
/** * This is used to determine if the X509 certificate chain is * present for the request. If it is not present then a challenge * can be used to request the certificate. * * @return true if the certificate chain is present */ public boolean isChainPresent() throws Exception { return certificate.isChainPresent(); }
/** * This method will challenge the client for their certificate. * It does so by performing an SSL renegotiation. Successful * completion of the SSL renegotiation results in the client * providing their certificate, and execution of the task. * * @param completion task to be run on successful challenge */ public Future<Certificate> challenge(Runnable completion) throws Exception { if(certificate == null) { throw new IOException("Challenging must be done on a secure connection"); } CertificateChallenge challenge = certificate.getChallenge(); if(certificate.isChainPresent()) { throw new IOException("Certificate is already present"); } if(monitor.isCommitted()) { throw new IOException("Response has already been committed"); } return challenge.challenge(completion); } }
/** * This method will challenge the client for their certificate. * It does so by performing an SSL renegotiation. Successful * completion of the SSL renegotiation results in the client * providing their certificate, and execution of the task. * * @param completion task to be run on successful challenge */ public Future<Certificate> challenge(Runnable completion) throws Exception { if(certificate == null) { throw new IOException("Challenging must be done on a secure connection"); } CertificateChallenge challenge = certificate.getChallenge(); if(certificate.isChainPresent()) { throw new IOException("Certificate is already present"); } if(observer.isCommitted()) { throw new IOException("Response has already been committed"); } return challenge.challenge(completion); } }
/** * This method will challenge the client for their certificate. * It does so by performing an SSL renegotiation. Successful * completion of the SSL renegotiation results in the client * providing their certificate, and execution of the task. * * @param completion task to be run on successful challenge */ public Future<Certificate> challenge(Runnable completion) throws Exception { if(certificate == null) { throw new IOException("Challenging must be done on a secure connection"); } CertificateChallenge challenge = certificate.getChallenge(); if(certificate.isChainPresent()) { throw new IOException("Certificate is already present"); } if(observer.isCommitted()) { throw new IOException("Response has already been committed"); } return challenge.challenge(completion); } }
/** * This will return the X509 certificate chain, if any, that * has been sent by the client. A certificate chain is typically * only send when the server explicitly requests the certificate * on the initial connection or when it is challenged for. * * @return this returns the clients X509 certificate chain */ public X509Certificate[] getChain() throws Exception { return certificate.getChain(); }
/** * This is used to determine if the X509 certificate chain is * present for the request. If it is not present then a challenge * can be used to request the certificate. * * @return true if the certificate chain is present */ public boolean isChainPresent() throws Exception { return certificate.isChainPresent(); }
/** * This will return the X509 certificate chain, if any, that * has been sent by the client. A certificate chain is typically * only send when the server explicitly requests the certificate * on the initial connection or when it is challenged for. * * @return this returns the clients X509 certificate chain */ public X509Certificate[] getChain() throws Exception { return certificate.getChain(); }
/** * This is used to determine if the X509 certificate chain is * present for the request. If it is not present then a challenge * can be used to request the certificate. * * @return true if the certificate chain is present */ public boolean isChainPresent() throws Exception { return certificate.isChainPresent(); }