Package org.ietf.jgss

Examples of org.ietf.jgss.GSSException


                if (read == -1) return;

                outputStream.write(buf, 0, read);
            }
        } catch (IOException e) {
            throw new GSSException(GSSException.FAILURE);
        }
    }
View Full Code Here


                if (read == -1) return;

                outputStream.write(buf, 0, read);
            }
        } catch (IOException e) {
            throw new GSSException(GSSException.FAILURE);
        }
    }
View Full Code Here

            throw new GSSException(GSSException.FAILURE);
        }
    }

    private void checkLife() throws GSSException {
        if (end < System.currentTimeMillis()) throw new GSSException(GSSException.CONTEXT_EXPIRED);
    }
View Full Code Here

            result.protReady = true;

            return result;
        } catch (IOException e) {
            throw new GSSException(GSSException.FAILURE);
        }
    }
View Full Code Here

        return subject.equals(((GSSUPNameSpi)name).subject);
    }

    public byte[] export() throws GSSException
    {
        throw new GSSException(GSSException.FAILURE, GSSException.FAILURE, "Not Implemented");
        /*
        //System.out.println("GSSUPNameSpi.export");
        Any any = ((GSSUPProvider)provider).getORB().create_any();
        InitialContextTokenHelper.insert( any, subject );
        byte[] out = new byte[0];
View Full Code Here

          serverSubject, serverPrincipal,
          gssManager, GSSCredential.ACCEPT_ONLY);
        }
          });
    } catch (PrivilegedActionException pe) {
        GSSException ge = (GSSException) pe.getException();
        throw new UnsupportedConstraintException(
      "Failed to get GSSCredential for server principal: " +
      serverPrincipal, ge);
    }
      } catch (UnsupportedConstraintException uce) {
View Full Code Here

     */
    public static void obtainServiceTickets( Subject subject, String userName, String serviceName, String hostName )
        throws GSSException
    {
        ObtainServiceTicketAction action = new ObtainServiceTicketAction( userName, serviceName, hostName );
        GSSException exception = Subject.doAs( subject, action );
        if ( exception != null )
        {
            throw exception;
        }
    }
View Full Code Here

     */
    public static void obtainServiceTickets( Subject subject, String userName, String serviceName, String hostName )
        throws GSSException
    {
        ObtainServiceTicketAction action = new ObtainServiceTicketAction( userName, serviceName, hostName );
        GSSException exception = Subject.doAs( subject, action );
        if ( exception != null )
        {
            throw exception;
        }
    }
View Full Code Here

        return subject.equals(((GSSUPNameSpi)name).subject);
    }

    public byte[] export() throws GSSException
    {
        throw new GSSException(GSSException.FAILURE, GSSException.FAILURE, "Not Implemented");
        /*
        //System.out.println("GSSUPNameSpi.export");
        Any any = ((GSSUPProvider)provider).getORB().create_any();
        InitialContextTokenHelper.insert( any, subject );
        byte[] out = new byte[0];
View Full Code Here

        int tag = is.read();

        //      debug("tag=" + tag);

        if (tag != TOKEN_ID)
            throw new GSSException(GSSException.DEFECTIVE_TOKEN, -1,
                                   "GSSHeader did not find the right tag");

        int length = getLength(is);

        DerValue temp = new DerValue(is);
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.