name
and adds it to the list of known names.
@param name a not null
name to base the new unique name from
@return a new unique, not null
name. This name may bepossibly identical to name
.
GSSName
object created will contain multiple representations of the name, one for each mechanism that is supported; two examples that are exceptions to this are when the namespace type parameter indicates NT_EXPORT_NAME or when the GSS-API implementation is not multi-mechanism. It is not recommended to use this method with a NT_EXPORT_NAME type because representing a previously exported name consisting of abitrary bytes as a String might cause problems with character encoding schemes. In such cases it is recommended that the bytes be passed in directly to the overloaded form of this method {@link #createName(byte[],Oid) createName}.
@param nameStr the string representing a printable form of the name tocreate.
@param nameType the Oid specifying the namespace of the printable namesupplied. null
can be used to specify that a mechanism specific default printable syntax should be assumed by each mechanism that examines nameStr. It is not advisable to use the nametype NT_EXPORT_NAME with this method.
@return a GSSName representing the indicated principal
@see GSSName
@see GSSName#NT_EXPORT_NAME
@throws GSSException containing the following major error codes: {@link GSSException#BAD_NAMETYPE GSSException.BAD_NAMETYPE}, {@link GSSException#BAD_NAME GSSException.BAD_NAME}, {@link GSSException#BAD_MECH GSSException.BAD_MECH}, {@link GSSException#FAILURE GSSException.FAILURE}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|