sun.security.mule.jgss
Class GSSExceptionImpl

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.ietf.jgss.GSSException
              extended by sun.security.mule.jgss.GSSExceptionImpl
All Implemented Interfaces:
Serializable

public class GSSExceptionImpl
extends GSSException

This class helps overcome a limitation of the org.ietf.jgss.GSSException class that does not allow the thrower to set a string corresponding to the major code.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.ietf.jgss.GSSException
BAD_BINDINGS, BAD_MECH, BAD_MIC, BAD_NAME, 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
GSSExceptionImpl(int majorCode, Exception cause)
          A constructor that takes the majorCode and the exception cause.
GSSExceptionImpl(int majorCode, String majorMessage)
          A constructor that takes the majorCode as well as the message that corresponds to it.
GSSExceptionImpl(int majorCode, String majorMessage, Exception cause)
          A constructor that takes the majorCode, the message that corresponds to it, and the exception cause.
 
Method Summary
 String getMessage()
          Returns the message that was embedded in this object, otherwise it returns the default message that an org.ietf.jgss.GSSException generates.
 
Methods inherited from class org.ietf.jgss.GSSException
getMajor, getMajorString, getMinor, getMinorString, setMinor, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GSSExceptionImpl

public GSSExceptionImpl(int majorCode,
                        String majorMessage)
A constructor that takes the majorCode as well as the message that corresponds to it.


GSSExceptionImpl

public GSSExceptionImpl(int majorCode,
                        Exception cause)
A constructor that takes the majorCode and the exception cause.


GSSExceptionImpl

public GSSExceptionImpl(int majorCode,
                        String majorMessage,
                        Exception cause)
A constructor that takes the majorCode, the message that corresponds to it, and the exception cause.

Method Detail

getMessage

public String getMessage()
Returns the message that was embedded in this object, otherwise it returns the default message that an org.ietf.jgss.GSSException generates.

Overrides:
getMessage in class GSSException


Copyright © 2013. All Rights Reserved.