Top Inners Fields Constructors Methods
org.bouncycastle.est.jcajce

pack-priv Class DefaultESTClient

extends Object
implements ESTClient
Class Inheritance
All Implemented Interfaces
org.bouncycastle.est.ESTClient
Imports
java.io.IOException, .OutputStream, java.net.URL, java.nio.charset.Charset, java.util.Iterator, .Map, .Set, org.bouncycastle.est.ESTClient, .ESTClientSourceProvider, .ESTException, .ESTRequest, .ESTRequestBuilder, .ESTResponse, .Source, org.bouncycastle.util.Properties

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static byte[]
private final ESTClientSourceProvider
private static final Charset

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ESTResponse
public ESTResponse
protected ESTRequest
private static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CRLFback to summary
private static byte[] CRLF
sslSocketProviderback to summary
private final ESTClientSourceProvider sslSocketProvider
utf8back to summary
private static final Charset utf8

Constructor Detail

DefaultESTClientback to summary
public DefaultESTClient(ESTClientSourceProvider sslSocketProvider)

Method Detail

doRequestback to summary
public ESTResponse doRequest(ESTRequest req) throws IOException

Implements org.bouncycastle.est.ESTClient.doRequest.

performRequestback to summary
public ESTResponse performRequest(ESTRequest c) throws IOException
redirectURLback to summary
protected ESTRequest redirectURL(ESTResponse response) throws IOException
writeLineback to summary
private static void writeLine(OutputStream os, String s) throws IOException
org.bouncycastle.est.jcajce back to summary

private Class DefaultESTClient.PrintingOutputStream

extends OutputStream
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final OutputStream

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
write(int
the byte.
b
)

Implements abstract java.io.OutputStream.write.

Writes the specified byte to this output stream.
Inherited from java.io.OutputStream:
closeflushnullOutputStreamwritewrite

Field Detail

tgtback to summary
private final OutputStream tgt

Constructor Detail

PrintingOutputStreamback to summary
public PrintingOutputStream(OutputStream tgt)

Method Detail

writeback to summary
public void write(int b) throws IOException

Implements abstract java.io.OutputStream.write.

Doc from java.io.OutputStream.write.

Writes the specified byte to this output stream. The general contract for write is that one byte is written to the output stream. The byte to be written is the eight low-order bits of the argument b. The 24 high-order bits of b are ignored.

Parameters
b:int

the byte.

Exceptions
IOException:
if an I/O error occurs. In particular, an IOException may be thrown if the output stream has been closed.