Package org.ietf.jgss

Examples of org.ietf.jgss.GSSException


        int[] cred_usage = {0};
        gss_name_t_desc name = new gss_name_t_desc();
        gss_OID_set_desc temp_mech_set = new gss_OID_set_desc();
       
        if(invalid) {
            throw new GSSException((int) gsswrapper.GSS_S_DEFECTIVE_CREDENTIAL,
                    0, "credential has been disposed, no longer valid");
        }

        maj_status = gsswrapper.gss_inquire_cred(min_status,
                this.internGSSCred, name, lifetime, cred_usage,
View Full Code Here


        long[] accept_lifetime = {0};
        int[] cred_usage = {0};
        gss_name_t_desc name = new gss_name_t_desc();
       
        if(invalid) {
            throw new GSSException((int) gsswrapper.GSS_S_DEFECTIVE_CREDENTIAL,
                    0, "credential has been disposed, no longer valid");
        }

        maj_status = gsswrapper.gss_inquire_cred_by_mech(min_status,
                this.internGSSCred, mechOID.getNativeOid(), name,
View Full Code Here

        int[] cred_usage = {0};
        gss_name_t_desc name = new gss_name_t_desc();
        gss_OID_set_desc temp_mech_set = new gss_OID_set_desc();
       
        if(invalid) {
            throw new GSSException((int) gsswrapper.GSS_S_DEFECTIVE_CREDENTIAL,
                    0, "credential has been disposed, no longer valid");
        }
       
        maj_status = gsswrapper.gss_inquire_cred(min_status,
                this.internGSSCred, name, lifetime, cred_usage,
View Full Code Here

        long[] min_status = {0};
        long[] lifetime = {0};
        int[] cred_usage = {0};
       
        if(invalid) {
            throw new GSSException((int) gsswrapper.GSS_S_DEFECTIVE_CREDENTIAL,
                    0, "credential has been disposed, no longer valid");
        }

        maj_status = gsswrapper.gss_add_cred(min_status, this.internGSSCred,
                aName.getInternGSSName(), mech.getNativeOid(),
View Full Code Here

        }
      } catch (SaslException ex) {
        if (debugEnabled())
          TRACER.debugCaught(DebugLogLevel.ERROR, ex);
        Message msg;
        GSSException gex = (GSSException) ex.getCause();
        if(gex != null) {
          msg = ERR_SASL_CONTEXT_CREATE_ERROR.get(SASL_MECHANISM_GSSAPI,
              getGSSExceptionMessage(gex));
        } else {
          msg = ERR_SASL_CONTEXT_CREATE_ERROR.get(SASL_MECHANISM_GSSAPI,
View Full Code Here

              } else {
                throw new LoginException();
              }
            } catch (LoginException e1) {
              LOG.error(e1.getMessage());
              throw new GSSException(GSSException.DEFECTIVE_CREDENTIAL);
            }
            if(subject != null){
              Subject.doAs(subject, this);
            }else{
           throw new GSSException(GSSException.DEFECTIVE_CREDENTIAL);
         }
            // HTTP 1.1 issue:
            // Mutual auth will never complete do to 200 insted of 401 in
            // return from server. "state" will never reach ESTABLISHED
            // but it works anyway
View Full Code Here

TOP

Related Classes of org.ietf.jgss.GSSException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.