|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.iom.orb.SASURI
public final class SASURI
A URI to identify an IOM server. Here is the format for an IOM URI:
scheme://hostname[:port][;[protocol][;IOMNameValuePairs]]/
Where:
IOM
for general IOM URIs. Or one of the
specific types of an IOM URI, such as SAS-OMA
.
Bridge
, COM
or
Internal
.
If not specified, Bridge
is the default.
APPLICATIONNAME
APPLICATIONNAME
specifies the name of the application requesting the connection
to the server. The server may use this name in logging,
auditing, or performance tracking.
CLASSFACTORY
or CLSID
CLASSFACTORY
specifies the GUID of the object for which to acquire
an instance.
ENCR
ENCR
option specifies
the encryption algorithm to request when connecting to
the peer identified in this IOM URI.
ENCRLVL
ENCRLVL
option specifies
the level of encryption to request when connecting to
the peer identified in this IOM URI.
INTERFACEIID
or IID
INTERFACEIID
option specifies
the GUID of the desired interface within the object acquired.
LOCALE
LOCALE
option specifies the locale of the
connecting peer.
MAJOR
MAJOR
option specifies the major portion
of the bridge protocol version to use.
MINOR
MINOR
option specifies the minor portion
of the bridge protocol version to use.
SECURITYPACKAGELIST
SECURITYPACKAGELIST
option is a comma
separated string containing the list of packages to
be negotiated with the server. This value should only
be used when the SECURITYPACKAGE option has a value
of Negotiate.
PASS
PASS
option specifies
the password for the identity to use when connecting
to the peer identified in this IOM URI.
SECURITYPACKAGE
SECURITYPACKAGE
option specifies the
name of the security package that this client is
prepared to use with the server. Possible values
of this option are Negotiate, NTLM, or Kerberos.
SERVERNAME
SERVERNAME
option specifies the name of the
server as it is known in the metadata.
SPN
SPN
option specifies the Service Principal Name that the
client wishes to use with this IOM Server instance.
TIMEOUT
TIMEOUT
option specifies the timeout, in
milliseconds, of all outcall activity.
TRUSTEDSAS
USER
USER
option specifies
the identity to use when connecting to the peer
identified in this IOM URI.
For compatibility with earlier releases of IOM Bridge for Java, URIs of this form are also supported:
BRIDGE://hostname[:port][/[classID[?BridgeNameValuePairs]]]
The syntax for specifying BridgeNameValuePairs is the same as the syntax for specifying IOMNameValuePairs except that the pairs are separated by an ampersand instead of a comma.
Field Summary | |
---|---|
static java.lang.String |
applicationNameKey
The key for IOM attribute applicationname . |
static java.lang.String |
classFactoryKey
The key for IOM attribute classfactory . |
static java.lang.String |
classNameKey
The key for IOM attribute classname . |
static java.lang.String |
clsidKey
The key for IOM attribute clsid . |
static java.lang.String |
domainKey
The key for IOM attribute domain . |
static java.lang.String |
encrKey
The key for IOM attribute encr . |
static java.lang.String |
encrLevelCredentials
IOM URI attribute encrlvl value credentials. |
static java.lang.String |
encrLevelEverything
IOM URI attribute encrlvl value everything. |
static java.lang.String |
encrLevelKey
The key for IOM attribute encrlvl . |
static java.lang.String |
encrLevelNone
IOM URI attribute encrlvl value none. |
static java.lang.String |
hostKey
The key for IOM attribute host . |
static java.lang.String |
iidKey
The key for IOM attribute iid . |
static java.lang.String |
interfaceIIDKey
The key for IOM attribute interfaceiid . |
static java.lang.String |
localeKey
The key for IOM attribute locale . |
static java.lang.String |
majorKey
The key for IOM attribute major . |
static java.lang.String |
minorKey
The key for IOM attribute minor . |
static java.lang.String |
noRedirectKey
The key for IOM attribute noredirect . |
static java.lang.String |
passKey
The key for IOM attribute pass . |
static java.lang.String |
portKey
The key for IOM attribute port . |
static java.lang.String |
protocolBRG
IOM URI protocol Bridge. |
static java.lang.String |
protocolCOM
IOM URI protocol COM. |
static java.lang.String |
protocolINT
IOM URI protocol Internal. |
static java.lang.String |
protocolKey
The key for IOM attribute protocol . |
static java.lang.String |
sasCommandKey
The key for IOM attribute sascommand . |
static java.lang.String |
schemeIOM
URI scheme IOM . |
static java.lang.String |
schemeOMA
URI scheme SAS-OMA . |
static java.lang.String |
securityPackageKey
The key for IOM attribute securitypackage . |
static java.lang.String |
securityPackageListKey
The key for IOM attribute securitypackagelist . |
static java.lang.String |
serverNameKey
The key for IOM attribute servername . |
static java.lang.String |
spnKey
The key for IOM attribute spn . |
static java.lang.String |
svidKey
The key for IOM attribute svid . |
static java.lang.String |
timeoutKey
The key for IOM attribute timeout . |
static java.lang.String |
trustedSASKey
The key for IOM attribute trustedsas . |
static java.lang.String |
userKey
The key for IOM attribute user . |
static java.lang.String |
zeroConfigKey
The key for IOM attribute zeroconfig . |
Constructor Summary | |
---|---|
SASURI(java.lang.String str)
Construct a SASURI. |
Method Summary | |
---|---|
static SASURI |
create(java.lang.String str)
Construct and return a SASURI from its string representation. |
boolean |
equals(java.lang.Object that)
|
java.lang.String |
getApplicationName()
Get the value of the applicationname attribute. |
java.util.Map |
getAttributes()
Returns all the IOM attributes for this URI encapsulated in a Map . |
java.lang.String |
getClassFactory()
Get the value of the classfactory attribute. |
java.lang.String |
getClassName()
Get the value of the classname attribute. |
java.lang.String |
getClsid()
Get the value of the clsid attribute. |
java.lang.String |
getDomain()
Get the value of the domain attribute. |
java.lang.String |
getEncr()
Get the value of the encr attribute. |
java.lang.String |
getEncrLevel()
Get the value of the encrlvl attribute. |
java.lang.String |
getHost()
Get the host part of the URI. |
java.lang.String |
getIID()
Get the value of the iid attribute. |
java.lang.String |
getInterfaceIID()
Get the value of the interfaceiid attribute. |
java.util.Locale |
getLocale()
Get the value of the locale attribute. |
byte |
getMajor()
Get the value of the major attribute. |
byte |
getMinor()
Get the value of the minor attribute. |
java.lang.String |
getPass()
Get the value of the pass attribute. |
int |
getPort()
Get the port part of the URI. |
java.lang.Integer |
getPortNumber()
Get the port part of the URI as an Integer. |
java.lang.String |
getProtocol()
Get the protocol part of the URI. |
java.lang.String |
getSasCommand()
Get the value of the sascommand attribute. |
java.lang.String |
getScheme()
Get the scheme part of the URI. |
java.lang.String |
getSecurityPackage()
Get the value of the securitypackage attribute. |
java.lang.String |
getSecurityPackageList()
Get the value of the securitypackagelist attribute. |
java.lang.String |
getServerName()
Get the value of the servername attribute. |
java.lang.String |
getSPN()
Get the value of the spn attribute. |
java.lang.String |
getSVID()
Get the value of the svid attribute. |
int |
getTimeout()
Get the value of the timeout attribute. |
java.lang.String |
getUser()
Get the value of the user attribute. |
int |
hashCode()
|
boolean |
isNoRedirect()
Returns true if the
noredirect attribute was specified and
false otherwise. |
boolean |
isTrustedSAS()
Returns true if the
trusted attribute was specified and
false otherwise. |
boolean |
isZeroConfig()
Get the value of the zeroconfig attribute. |
java.lang.String |
toBlottedString()
Returns the string used to construct this SASURI with sensitive information blotted out. |
java.lang.String |
toString()
Returns the string representation of this SASURI. |
Field Detail |
---|
public static final java.lang.String schemeIOM
IOM
.
public static final java.lang.String schemeOMA
SAS-OMA
. This scheme is a specialization
of scheme IOM
.
public static final java.lang.String protocolBRG
public static final java.lang.String protocolINT
public static final java.lang.String protocolCOM
public static final java.lang.String encrLevelEverything
encrlvl
value everything.
public static final java.lang.String encrLevelCredentials
encrlvl
value credentials.
public static final java.lang.String encrLevelNone
encrlvl
value none.
public static final java.lang.String hostKey
host
.
The value type in the attribute map is
java.lang.String
.
getAttributes()
,
Constant Field Valuespublic static final java.lang.String portKey
port
.
The value type in the attribute map is
java.lang.Integer
.
getAttributes()
,
Constant Field Valuespublic static final java.lang.String protocolKey
protocol
.
The value type in the attribute map is
java.lang.String
.
getAttributes()
,
protocolBRG
,
protocolCOM
,
protocolINT
,
Constant Field Valuespublic static final java.lang.String majorKey
major
.
The value type in the attribute map is
java.lang.Byte
.
getAttributes()
,
Constant Field Valuespublic static final java.lang.String minorKey
minor
.
The value type in the attribute map is
java.lang.Byte
.
getAttributes()
,
Constant Field Valuespublic static final java.lang.String localeKey
locale
.
The value type in the attribute map is
java.util.Locale
.
getAttributes()
,
Constant Field Valuespublic static final java.lang.String encrKey
encr
.
The value type in the attribute map is
java.lang.String
.
getAttributes()
,
Constant Field Valuespublic static final java.lang.String encrLevelKey
encrlvl
.
The value type in the attribute map is
java.lang.String
.
getAttributes()
,
#encryptionLevelCredentials
,
#encryptionLevelEverything
,
#encryptionLevelNone
,
Constant Field Valuespublic static final java.lang.String userKey
user
.
The value type in the attribute map is
java.lang.String
.
getAttributes()
,
Constant Field Valuespublic static final java.lang.String passKey
pass
.
The value type in the attribute map is
java.lang.String
.
getAttributes()
,
Constant Field Valuespublic static final java.lang.String classFactoryKey
classfactory
.
The value type in the attribute map is
java.lang.String
. An alternate name
for this attribute is clsid
.
getAttributes()
,
clsidKey
,
Constant Field Valuespublic static final java.lang.String clsidKey
clsid
.
The value type in the attribute map is
java.lang.String
. An alternate name
for this attribute is classfactory
.
getAttributes()
,
classFactoryKey
,
Constant Field Valuespublic static final java.lang.String serverNameKey
servername
.
The value type in the attribute map is
java.lang.String
.
getAttributes()
,
Constant Field Valuespublic static final java.lang.String interfaceIIDKey
interfaceiid
.
The value type in the attribute map is
java.lang.String
. An alternate name
for this attribute is iid
.
getAttributes()
,
iidKey
,
Constant Field Valuespublic static final java.lang.String timeoutKey
timeout
.
The value type in the attribute map is
java.lang.Integer
.
getAttributes()
,
Constant Field Valuespublic static final java.lang.String trustedSASKey
trustedsas
.
The value type in the attribute map is
java.lang.Boolean
. Trusted peer connections
in IOM Bridge for Java require the security permissions
com.sas.iom.orb.ORBPermission("brg.trustedPeer")
and
java.security.SecurityPermission("createAccessControlContext")
.
getAttributes()
,
Constant Field Valuespublic static final java.lang.String iidKey
iid
.
The value type in the attribute map is
java.lang.String
. An alternate name
for this attribute is interfaceiid
.
getAttributes()
,
interfaceIIDKey
,
Constant Field Valuespublic static final java.lang.String classNameKey
classname
.
The value type in the attribute map is
java.lang.String
.
getAttributes()
,
Constant Field Valuespublic static final java.lang.String domainKey
domain
.
The value type in the attribute map is
java.lang.String
.
getAttributes()
,
Constant Field Valuespublic static final java.lang.String securityPackageKey
securitypackage
.
The value type in the attribute map is
java.lang.String
.
getAttributes()
,
Constant Field Valuespublic static final java.lang.String securityPackageListKey
securitypackagelist
.
The value type in the attribute map is
java.lang.String
.
getAttributes()
,
Constant Field Valuespublic static final java.lang.String spnKey
spn
.
The value type in the attribute map is
java.lang.String
.
getAttributes()
,
Constant Field Valuespublic static final java.lang.String svidKey
svid
.
The value type in the attribute map is
java.lang.String
.
getAttributes()
,
Constant Field Valuespublic static final java.lang.String noRedirectKey
noredirect
.
The value type in the attribute map is
java.lang.Boolean
.
getAttributes()
,
Constant Field Valuespublic static final java.lang.String zeroConfigKey
zeroconfig
.
The value type in the attribute map is
java.lang.Boolean
.
getAttributes()
,
Constant Field Valuespublic static final java.lang.String applicationNameKey
applicationname
.
The value type in the attribute map is
java.lang.String
.
getAttributes()
,
Constant Field Valuespublic static final java.lang.String sasCommandKey
sascommand
.
The value type is the attribute map is
java.lang.String
. This attribute
is ignored unless the value for the zeroconfig
attribute is true.
getAttributes()
,
Constant Field ValuesConstructor Detail |
---|
public SASURI(java.lang.String str) throws java.net.URISyntaxException
str
- the string representation of the URI
java.net.URISyntaxException
- if the URI scheme is not supported
or if the URI has invalid syntax
java.lang.NullPointerException
- if the URI is null
Method Detail |
---|
public boolean equals(java.lang.Object that)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toBlottedString()
pass
attribute will be replaced with
xxxxxxxx
.
public java.lang.String getScheme()
public java.lang.String getHost()
public int getPort()
-1
if the port part of the URI is unspecified.
public java.lang.Integer getPortNumber()
public java.lang.String getProtocol()
public byte getMajor()
major
attribute.
If a value for
this attribute was not provided, this method
will return -1
.
major
attributepublic byte getMinor()
minor
attribute.
If a value for
this attribute was not provided, this method
will return -1
.
minor
attributepublic java.util.Locale getLocale()
locale
attribute.
If a value for
this attribute was not provided, this method
will return null
.
locale
attributepublic java.lang.String getEncrLevel()
encrlvl
attribute.
If a value for
this attribute was not provided, this method
will return null
.
encrlvl
attributepublic java.lang.String getEncr()
encr
attribute.
If a value for
this attribute was not provided, this method
will return null
.
encr
attributepublic java.lang.String getUser()
user
attribute.
If a value for
this attribute was not provided, this method
will return null
.
user
attributepublic java.lang.String getPass()
pass
attribute.
If a value for
this attribute was not provided, this method
will return null
.
pass
attributepublic java.lang.String getClassFactory()
classfactory
attribute.
If a value for
this attribute was not provided, this method
will return null
.
classfactory
attributepublic java.lang.String getClsid()
clsid
attribute.
If a value for
this attribute was not provided, this method
will return null
.
clsid
attributepublic java.lang.String getServerName()
servername
attribute.
If a value for
this attribute was not provided, this method
will return null
.
servername
attributepublic java.lang.String getInterfaceIID()
interfaceiid
attribute.
If a value for
this attribute was not provided, this method
will return null
.
interfaceiid
attributepublic java.lang.String getIID()
iid
attribute.
If a value for
this attribute was not provided, this method
will return null
.
iid
attributepublic int getTimeout()
timeout
attribute.
If a value for
this attribute was not provided, this method
will return -1
.
timeout
attributepublic boolean isTrustedSAS()
true
if the
trusted
attribute was specified and
false
otherwise. Trusted peer connections
in IOM Bridge for Java require the security permissions
com.sas.iom.orb.ORBPermission("brg.trustedPeer")
and
java.security.SecurityPermission("createAccessControlContext")
.
true
if the
trusted
attribute was specified and
false
otherwise.public java.lang.String getClassName()
classname
attribute.
If a value for
this attribute was not provided, this method
will return null
.
classname
attributepublic java.lang.String getSecurityPackage()
securitypackage
attribute.
If a value for
this attribute was not provided, this method
will return null
.
securitypackage
attributepublic java.lang.String getSecurityPackageList()
securitypackagelist
attribute.
If a value for
this attribute was not provided, this method
will return null
.
securitypackagelist
attributepublic java.lang.String getSPN()
spn
attribute.
If a value for
this attribute was not provided, this method
will return null
.
spn
attributepublic java.lang.String getDomain()
domain
attribute.
If a value for
this attribute was not provided, this method
will return null
.
domain
attributepublic java.lang.String getSVID()
svid
attribute.
If a value for
this attribute was not provided, this method
will return null
.
svid
attributepublic boolean isNoRedirect()
true
if the
noredirect
attribute was specified and
false
otherwise.
true
if the
noredirect
attribute was specified and
false
otherwise.public boolean isZeroConfig()
zeroconfig
attribute.
If a value for
this attribute was not provided, this method
will return false
.
zeroConfig
attributepublic java.lang.String getApplicationName()
applicationname
attribute.
If a value for
this attribute was not provided, this method
will return null
.
applicationname
attributepublic java.lang.String getSasCommand()
sascommand
attribute.
If a value for
this attribute was not provided, this method
will return null
.
sascommand
attributepublic java.util.Map getAttributes()
Map
. The keys
for the map are the *Key
fields
of this class. The type of each value is
specified in the documentation for its
respective key.
Map
.public static SASURI create(java.lang.String str)
str
- the string representation of the URI
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |