Package com.sun.enterprise.iiop.security
Class GSSUtils
- java.lang.Object
-
- com.sun.enterprise.iiop.security.GSSUtils
-
public class GSSUtils extends Object
- Author:
- Sekhar Vajjhala (Almost complete rewrite of an old version)
-
-
Field Summary
Fields Modifier and Type Field Description static OidGSS_NT_EXPORT_NAME_OIDstatic OidGSS_NT_SCOPED_USERNAME_OIDstatic OidGSSUP_MECH_OID
-
Constructor Summary
Constructors Constructor Description GSSUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]createExportedName(Oid oid, byte[] extName)static byte[]createMechIndToken(Oid mechoid, byte[] mechtok)static StringdumpHex(byte[] octets)static byte[]getDER(Oid id)static byte[]getMechanism()Return the ASN.1 encoded representation of a GSS mechanism identifier.static byte[]getMechToken(Oid oid, byte[] token)static OidgetOID(byte[] derOID)static byte[]importName(Oid oid, byte[] externalName)static voidmain(String[] args)static booleanverifyMechOID(Oid oid, byte[] externalName)
-
-
-
Method Detail
-
dumpHex
public static String dumpHex(byte[] octets)
-
importName
public static byte[] importName(Oid oid, byte[] externalName) throws GSSException
- Throws:
GSSException
-
verifyMechOID
public static boolean verifyMechOID(Oid oid, byte[] externalName) throws GSSException
- Throws:
GSSException
-
createExportedName
public static byte[] createExportedName(Oid oid, byte[] extName) throws GSSException
- Throws:
GSSException
-
getDER
public static byte[] getDER(Oid id) throws GSSException
- Throws:
GSSException
-
getOID
public static Oid getOID(byte[] derOID) throws GSSException
- Throws:
GSSException
-
createMechIndToken
public static byte[] createMechIndToken(Oid mechoid, byte[] mechtok) throws GSSException
- Throws:
GSSException
-
getMechToken
public static byte[] getMechToken(Oid oid, byte[] token)
-
getMechanism
public static byte[] getMechanism()
Return the ASN.1 encoded representation of a GSS mechanism identifier. Currently only the GSSUP Mechanism is supported.
-
main
public static void main(String[] args)
-
-