| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private static interface |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final String | |
| private final List | |
| private final Repository | db
Database we write the push certificate into. |
| private final boolean | |
| pack-priv static final String | |
| pack-priv static final String | |
| pack-priv static final String | |
| private final NonceGenerator | |
| private final int | nonceSlopLimit
The maximum time difference which is acceptable between advertised nonce and received signed nonce. |
| private PushCertificate. | |
| pack-priv static final String | |
| private String | |
| pack-priv static final String | |
| private PushCertificateIdent | |
| private boolean | |
| private String | receivedNonce
The nonce the pusher signed. |
| private String | sentNonce
The nonce that was sent to the client. |
| private String | |
| pack-priv static final String | |
| private String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public | PushCertificateParser(Repository
destination repository for the push. into, SignedPushConfig configuration for signed push. cfg)Constructor for PushCertificateParser. |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | addCommand(String
the line read from the wire that produced this
command, with optional trailing newline already trimmed. line)Add a command to the signature. |
| public PushCertificate | Returns: the parsed certificate, or null if push certificates are disabled.Build the parsed certificate |
| public boolean | Returns: if the repository is configured to use signed pushes in this context.Whether the repository is configured to use signed pushes in this context. |
| public static PushCertificate | Returns: the parsed certificate, or null if the reader was at EOF.input reader; consumed only up until the end of the next
signature in the input. r)Parse a push certificate from a reader. |
| public static PushCertificate | Returns: the parsed certificate.input string. str)Parse a push certificate from a string. |
| public String | Returns: the whole string for the nonce to be included into the capability advertisement, or null if push certificates are disabled.Get the whole string for the nonce to be included into the capability advertisement |
| public PushCertificate | |
| private static String | |
| private static String | |
| public void | receiveHeader(PacketLineIn
where we take the push certificate header from. pckIn, boolean affects nonce verification. When stateless)stateless = true the
NonceGenerator will allow for some time skew caused by
clients disconnected and reconnecting in the stateless smart
HTTP protocol.Receive a list of commands from the input encapsulated in a push certificate. |
| private void | |
| public void | |
| private void | |
| private String |
| BEGIN_SIGNATURE | back to summary |
|---|---|
| pack-priv static final String BEGIN_SIGNATURE | |
| commands | back to summary |
|---|---|
| private final List<ReceiveCommand> commands | |
| db | back to summary |
|---|---|
| private final Repository db Database we write the push certificate into. | |
| enabled | back to summary |
|---|---|
| private final boolean enabled | |
| END_CERT | back to summary |
|---|---|
| pack-priv static final String END_CERT | |
| END_SIGNATURE | back to summary |
|---|---|
| pack-priv static final String END_SIGNATURE | |
| NONCE | back to summary |
|---|---|
| pack-priv static final String NONCE | |
| nonceGenerator | back to summary |
|---|---|
| private final NonceGenerator nonceGenerator | |
| nonceSlopLimit | back to summary |
|---|---|
| private final int nonceSlopLimit The maximum time difference which is acceptable between advertised nonce and received signed nonce. | |
| nonceStatus | back to summary |
|---|---|
| private PushCertificate. | |
| PUSHEE | back to summary |
|---|---|
| pack-priv static final String PUSHEE | |
| pushee | back to summary |
|---|---|
| private String pushee | |
| PUSHER | back to summary |
|---|---|
| pack-priv static final String PUSHER | |
| pusher | back to summary |
|---|---|
| private PushCertificateIdent pusher | |
| received | back to summary |
|---|---|
| private boolean received | |
| receivedNonce | back to summary |
|---|---|
| private String receivedNonce The nonce the pusher signed.
This may vary from | |
| sentNonce | back to summary |
|---|---|
| private String sentNonce The nonce that was sent to the client. | |
| signature | back to summary |
|---|---|
| private String signature | |
| VERSION | back to summary |
|---|---|
| pack-priv static final String VERSION | |
| version | back to summary |
|---|---|
| private String version | |
| VERSION_0_1 | back to summary |
|---|---|
| private static final String VERSION_0_1 | |
| PushCertificateParser | back to summary |
|---|---|
| public PushCertificateParser(Repository into, SignedPushConfig cfg) Constructor for PushCertificateParser.
| |
| PushCertificateParser | back to summary |
|---|---|
| private PushCertificateParser() | |
| addCommand | back to summary |
|---|---|
| public void addCommand(ReceiveCommand cmd) Add a command to the signature.
| |
| addCommand | back to summary |
|---|---|
| public void addCommand(String line) throws PackProtocolException Add a command to the signature.
| |
| build | back to summary |
|---|---|
| public PushCertificate build() throws IOException Build the parsed certificate
| |
| enabled | back to summary |
|---|---|
| public boolean enabled() Whether the repository is configured to use signed pushes in this context.
| |
| fromReader | back to summary |
|---|---|
| public static PushCertificate fromReader(Reader r) throws PackProtocolException, IOException Parse a push certificate from a reader.
Differences from the
| |
| fromString | back to summary |
|---|---|
| public static PushCertificate fromString(String str) throws PackProtocolException, IOException Parse a push certificate from a string.
| |
| getAdvertiseNonce | back to summary |
|---|---|
| public String getAdvertiseNonce() Get the whole string for the nonce to be included into the capability advertisement
| |
| parse | back to summary |
|---|---|
| public PushCertificate parse(Reader r) throws PackProtocolException, IOException Parse a push certificate from a reader.
| |
| parseHeader | back to summary |
|---|---|
| private static String parseHeader(PushCertificateParser. | |
| parseHeader | back to summary |
|---|---|
| private static String parseHeader(String s, String header) throws IOException | |
| receiveHeader | back to summary |
|---|---|
| public void receiveHeader(PacketLineIn pckIn, boolean stateless) throws IOException Receive a list of commands from the input encapsulated in a push certificate.
This method doesn't parse the first line
| |
| receiveHeader | back to summary |
|---|---|
| private void receiveHeader(PushCertificateParser. | |
| receiveSignature | back to summary |
|---|---|
| public void receiveSignature(PacketLineIn pckIn) throws IOException Read the PGP signature.
This method assumes the line
| |
| receiveSignature | back to summary |
|---|---|
| private void receiveSignature(PushCertificateParser. | |
| sentNonce | back to summary |
|---|---|
| private String sentNonce() | |
| Modifier and Type | Field and Description |
|---|---|
| private final PacketLineIn |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String |
| pckIn | back to summary |
|---|---|
| private final PacketLineIn pckIn | |
| PacketLineReader | back to summary |
|---|---|
| private PacketLineReader(PacketLineIn pckIn) | |
| read | back to summary |
|---|---|
| public String read() throws IOException Implements org.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String |
| reader | back to summary |
|---|---|
| private final Reader reader | |
| StreamReader | back to summary |
|---|---|
| private StreamReader(Reader reader) | |
| read | back to summary |
|---|---|
| public String read() throws IOException Implements org.
| |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the next string from the input, up to an optional newline, with newline stripped if present
|
| read | back to summary |
|---|---|
public String read() throws EOFException, IOException
| |