Class OpenSshCertificate.CertificateOption
- java.lang.Object
-
- org.apache.sshd.common.config.keys.OpenSshCertificate.CertificateOption
-
- Enclosing interface:
- OpenSshCertificate
public static class OpenSshCertificate.CertificateOption extends Object
Certificate Options are a set of bytes that is[overall length][name(string)][[length of buffer][[length of string][data(string)]]]...
Where each Certificate Option is encoded as a name (string) and data (string packed in a buffer). The entire name (string) + data (buffer) are added as bytes (which will get a length prefix).
- See Also:
- PROTOCOL.certkeys
-
-
Constructor Summary
Constructors Constructor Description CertificateOption(String name)Creates a newOpenSshCertificate.CertificateOptionwith a name without data.CertificateOption(String name, String data)Creates a newOpenSshCertificate.CertificateOptionwith the given name and data.
-
-
-
Constructor Detail
-
CertificateOption
public CertificateOption(String name, String data)
Creates a newOpenSshCertificate.CertificateOptionwith the given name and data.- Parameters:
name- of the option; must be neithernullnor emptydata- for the option; may benullor empty
-
CertificateOption
public CertificateOption(String name)
Creates a newOpenSshCertificate.CertificateOptionwith a name without data.- Parameters:
name- of the option; must be neithernullnor empty
-
-