authorized_keys file according to the
OpenSSH
formatNote
equals/hashCode check only the key type and data - the comment and/or login options
are not considered part of equality
| Modifier and Type | Field and Description |
|---|---|
| public static final char | |
| private String | |
| private Map | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static AbstractMap. | Returns: The updated entry -null if no option updated in the mapOptions map to add to optsMap, String The option data to parse - ignored if option)null/empty/blankParses and adds a new option to the options map. |
| public PublicKey | appendPublicKey(SessionContext
The session, Appendable SessionContext for invoking this command - may be null if
not invoked within a session context (e.g., offline tool or session unknown).The sb, PublicKeyEntryResolver Appendable instance to encode the data intoThe fallbackResolver)PublicKeyEntryResolver to consult if none of the built-in ones can
be used. If null and no built-in resolver can be used then an
InvalidKeySpecException is thrown.Overrides org.
|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides org. Indicates whether some other object is "equal to" this one. |
| public String | |
| public Map | |
| public int | hashCode()
Overrides org. Returns a hash code value for this object. |
| public static AuthorizedKeyEntry | |
| public static AuthorizedKeyEntry | parseAuthorizedKeyEntry(String
Original line from an value, PublicKeyEntryDataResolver authorized_keys fileThe resolver)PublicKeyEntryDataResolver to use - if null one will be
automatically resolved from the key type
|
| public static NavigableMap | Returns: ANavigableMap where key=case insensitive option name and value=the parsed value.The options line to parse - ignored if options)null/empty/blankParses login options line according to sshd(8) - AUTHORIZED_KEYS_FILE_FORMAT guidelines Note
|
| public static List | |
| public static List | readAuthorizedKeys(Path
Path to read fromThe options)OpenOptions to use - if unspecified then appropriate defaults assumedReads read the contents of an |
| public static List | readAuthorizedKeys(InputStream
The in, boolean InputStream to use to read the contents of an authorized_keys filetrue if method may close the input regardless success or failureReads read the contents of an |
| public static List | readAuthorizedKeys(Reader
The rdr, boolean Reader to use to read the contents of an authorized_keys filetrue if method may close the input regardless success or failureReads read the contents of an |
| public static List | readAuthorizedKeys(BufferedReader
The rdr)BufferedReader to use to read the contents of an authorized_keys file
|
| public static AbstractMap. | Returns: ASimpleImmutableEntry representing the parsed data where key=login options part and
value=rest of the data - null if no data in line or line starts with comment characterThe line to be parsed entryLine)Parses a single line from an |
| public PublicKey | Returns: The resolvedPublicKey - or null if could not be resolvedNote may be called only after key type and data bytes have been set or exception(s) may be thrown The session, PublicKeyEntryResolver SessionContext for invoking this load command - may be null
if not invoked within a session context (e.g., offline tool or session unknown).The fallbackResolver)PublicKeyEntryResolver to consult if none of the built-in ones can
be used. If null and no built-in resolver can be used then an
InvalidKeySpecException is thrown.
|
| public void | |
| public void | |
| public String | toString()
Overrides org. Returns a string representation of the object. |
| BOOLEAN_OPTION_NEGATION_INDICATOR | back to summary |
|---|---|
| public static final char BOOLEAN_OPTION_NEGATION_INDICATOR | |
| comment | back to summary |
|---|---|
| private String comment | |
| loginOptions | back to summary |
|---|---|
| private Map<String, String> loginOptions | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. | |
| AuthorizedKeyEntry | back to summary |
|---|---|
| public AuthorizedKeyEntry() | |
| addLoginOption | back to summary |
|---|---|
| public static AbstractMap. Parses and adds a new option to the options map. If a valued option is re-specified then its value(s) are concatenated using comma as separator.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides org. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getComment | back to summary |
|---|---|
| public String getComment() | |
| getLoginOptions | back to summary |
|---|---|
| public Map | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides org. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| parseAuthorizedKeyEntry | back to summary |
|---|---|
public static AuthorizedKeyEntry parseAuthorizedKeyEntry(String value) throws IllegalArgumentException
| |
| parseAuthorizedKeyEntry | back to summary |
|---|---|
public static AuthorizedKeyEntry parseAuthorizedKeyEntry(String value, PublicKeyEntryDataResolver resolver) throws IllegalArgumentException
| |
| parseLoginOptions | back to summary |
|---|---|
| public static NavigableMap Parses login options line according to sshd(8) - AUTHORIZED_KEYS_FILE_FORMAT guidelines Note
| |
| readAuthorizedKeys | back to summary |
|---|---|
| public static List Reads read the contents of an
| |
| readAuthorizedKeys | back to summary |
|---|---|
| public static List Reads read the contents of an
| |
| readAuthorizedKeys | back to summary |
|---|---|
| public static List Reads read the contents of an
| |
| readAuthorizedKeys | back to summary |
|---|---|
| public static List Reads read the contents of an
| |
| readAuthorizedKeys | back to summary |
|---|---|
public static List
| |
| resolveEntryComponents | back to summary |
|---|---|
| public static AbstractMap. Parses a single line from an
| |
| resolvePublicKey | back to summary |
|---|---|
public PublicKey resolvePublicKey(SessionContext session, PublicKeyEntryResolver fallbackResolver) throws IOException, GeneralSecurityException
| |
| setComment | back to summary |
|---|---|
| public void setComment(String value) | |
| setLoginOptions | back to summary |
|---|---|
| public void setLoginOptions(Map<String, String> value) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |