Class OpenSshCertificate.CertificateOption
- java.lang.Object
-
- org.apache.sshd.common.config.keys.OpenSshCertificate.CertificateOption
-
- Enclosing interface:
- OpenSshCertificate
public static class OpenSshCertificate.CertificateOption extends java.lang.Object
Certificate Options are a set of bytes that is[overall length][name(string)][data(string)]...
Where each Certificate Option is encoded as a name (string) and data (string). The entire name + data strings are added as bytes (which will get a length prefix).
- See Also:
- PROTOCOL.certkeys
-
-
Constructor Summary
Constructors Constructor Description CertificateOption(java.lang.String name)
Creates a newOpenSshCertificate.CertificateOption
with a name without data.CertificateOption(java.lang.String name, java.lang.String data)
Creates a newOpenSshCertificate.CertificateOption
with the given name and data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getData()
Retrieves the data.java.lang.String
getName()
Retrieves the name.int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
CertificateOption
public CertificateOption(java.lang.String name, java.lang.String data)
Creates a newOpenSshCertificate.CertificateOption
with the given name and data.- Parameters:
name
- of the option; must be neithernull
nor emptydata
- for the option; may benull
or empty
-
CertificateOption
public CertificateOption(java.lang.String name)
Creates a newOpenSshCertificate.CertificateOption
with a name without data.- Parameters:
name
- of the option; must be neithernull
nor empty
-
-
Method Detail
-
getName
public final java.lang.String getName()
Retrieves the name.- Returns:
- the name, never
null
-
getData
public final java.lang.String getData()
Retrieves the data.- Returns:
- the data, may be
null
or empty
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-