Package io.milton.ftp
Class NameAndAuthority
java.lang.Object
io.milton.ftp.NameAndAuthority
Parse a string into three components
- username
- domain
- authority
The domain field is to support servers which serve multiple domains, where the user list
is defined per domain.
The authority field is to support hierarchies of domains, where the user from
an owning domain will get access to child domains
- Author:
- brad
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNameAndAuthority(String name) NameAndAuthority(String name, String authority, String domain) -
Method Summary
Modifier and TypeMethodDescriptionstatic NameAndAuthorityValid forms: joe - domain and authority are null joe#www.joe.com - domain and authority are 'www.joe.com' joe#admin.joe.com:www.joes-client.com - authority is 'admin.joe.com', domain is 'www.joes-client.com'toMilton()
-
Field Details
-
DELIM_HOST
- See Also:
-
DELIM_AUTHORITY
- See Also:
-
name
The username part. E.g. brad -
domain
The domain they are logging into. Optional. E.g. milton.ettrema.com -
authority
The name of the authority which grants access. Optional E.g. www.ettrema.com This is typically a domain which owns the domain being logged into. If not given explicitly defaults to the domain
-
-
Constructor Details
-
NameAndAuthority
-
NameAndAuthority
-
-
Method Details
-
parse
Valid forms: joe - domain and authority are null joe#www.joe.com - domain and authority are 'www.joe.com' joe#admin.joe.com:www.joes-client.com - authority is 'admin.joe.com', domain is 'www.joes-client.com'- Parameters:
user- - a string in one of the above forms- Returns:
-
toMilton
-