Class GlobusGSSException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.ietf.jgss.GSSException
org.globus.gsi.gssapi.GlobusGSSException
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intprivate final booleanstatic final intprivate static ResourceBundleprivate static final longstatic final intstatic final intstatic final intFields inherited from class GSSException
BAD_BINDINGS, BAD_MECH, BAD_NAMETYPE, BAD_QOP, BAD_STATUS, CONTEXT_EXPIRED, CREDENTIALS_EXPIRED, DEFECTIVE_CREDENTIAL, DEFECTIVE_TOKEN, DUPLICATE_ELEMENT, DUPLICATE_TOKEN, FAILURE, GAP_TOKEN, NAME_NOT_MN, NO_CONTEXT, NO_CRED, OLD_TOKEN, UNAUTHORIZED, UNAVAILABLE, UNSEQ_TOKEN -
Constructor Summary
ConstructorsConstructorDescriptionGlobusGSSException(int majorCode, int minorCode, String key) GlobusGSSException(int majorCode, int minorCode, String key, Object[] args) GlobusGSSException(int majorCode, int minorCode, String minorString, Throwable cause) GlobusGSSException(int majorCode, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionprivate Stringprivate static StringgetUsefulMessage(Throwable throwable) Wrapper around getMessage method that tries to provide a meaningful message.private static booleanUse heuristics to determine whether the supplied Throwable has any semantic content (i.e., does it provide any additional information).voidPrints this exception's stack trace to System.err.voidPrints this exception's stack trace to a print stream.voidPrints this exception's stack trace to a print writer.Methods inherited from class GSSException
getMajor, getMajorString, getMinor, getMinorString, setMinor, toStringMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
PROXY_VIOLATION
public static final int PROXY_VIOLATION- See Also:
-
BAD_ARGUMENT
public static final int BAD_ARGUMENT- See Also:
-
BAD_NAME
public static final int BAD_NAME- See Also:
-
CREDENTIAL_ERROR
public static final int CREDENTIAL_ERROR- See Also:
-
TOKEN_FAIL
public static final int TOKEN_FAIL- See Also:
-
DELEGATION_ERROR
public static final int DELEGATION_ERROR- See Also:
-
BAD_MIC
public static final int BAD_MIC- See Also:
-
UNKNOWN_OPTION
public static final int UNKNOWN_OPTION- See Also:
-
BAD_OPTION_TYPE
public static final int BAD_OPTION_TYPE- See Also:
-
BAD_OPTION
public static final int BAD_OPTION- See Also:
-
UNKNOWN
public static final int UNKNOWN- See Also:
-
resources
-
hasCustomMessage
private final boolean hasCustomMessage
-
-
Constructor Details
-
GlobusGSSException
-
GlobusGSSException
-
GlobusGSSException
-
GlobusGSSException
-
-
Method Details
-
printStackTrace
public void printStackTrace()Prints this exception's stack trace to System.err. If this exception has a root exception; the stack trace of the root exception is printed to System.err instead.- Overrides:
printStackTracein classThrowable
-
printStackTrace
Prints this exception's stack trace to a print stream. If this exception has a root exception; the stack trace of the root exception is printed to the print stream instead.- Overrides:
printStackTracein classThrowable- Parameters:
ps- The non-null print stream to which to print.
-
printStackTrace
Prints this exception's stack trace to a print writer. If this exception has a root exception; the stack trace of the root exception is printed to the print writer instead.- Overrides:
printStackTracein classThrowable- Parameters:
pw- The non-null print writer to which to print.
-
getMessage
- Overrides:
getMessagein classGSSException
-
getUsefulMessage
-
isBoring
Use heuristics to determine whether the supplied Throwable has any semantic content (i.e., does it provide any additional information). It seems that many GSSException objects are created with no information. Instead, the useful information is contained within the causing Throwable. Also, an SSLException may be thrown by SSLEngine that wraps some more interesting exception but the message has no information. As part of a work-around for this problem, this method tries to guess whether the supplied Throwable contains useful information.- Returns:
- true if the Throwable contains no useful information, false otherwise.
-
getLocalMessage
-