Examples of GSSException


Examples of org.ietf.jgss.GSSException

                break;
            case (byte) 0xa1:
                spnegoToken = new NegTokenTarg(token);
                break;
            default:
                throw new GSSException(GSSException.DEFECTIVE_TOKEN);  
            }
            return spnegoToken;
        }catch (IOException e) {
            throw new GSSException(GSSException.FAILURE);
        }
    }
View Full Code Here

Examples of org.ietf.jgss.GSSException

     */
    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

Examples of org.ietf.jgss.GSSException

        if (nameType.equals(GSSName.NT_HOSTBASED_SERVICE)) {
            return new GSSUPServerName(name);
        } else if (nameType.equals(GSSName.NT_USER_NAME)) {
            return new GSSUPUserName(name);
        }
        throw new GSSException(GSSException.BAD_NAMETYPE, -1, nameType.toString() + " is an unsupported nametype");
    }
View Full Code Here

Examples of org.ietf.jgss.GSSException

            out.writeBoolean(replayDet);
            out.writeBoolean(sequenceDet);

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

Examples of org.ietf.jgss.GSSException

            there = new GSSUPUserName(token.username);

            protReady = true;
            return null;
        } catch (IOException e) {
            throw new GSSException(GSSException.DEFECTIVE_TOKEN);
        } catch (LoginException e) {
            throw new GSSException(GSSException.DEFECTIVE_CREDENTIAL);
        }
    }
View Full Code Here

Examples of org.ietf.jgss.GSSException

    public Oid getMech() {
        return GSSUPMechanismFactory.MECHANISM_OID;
    }

    public GSSCredentialSpi getDelegCred() throws GSSException {
        if (!this.isProtReady()) throw new GSSException(GSSException.NO_CONTEXT);
        throw new GSSException(GSSException.NO_CRED);
    }
View Full Code Here

Examples of org.ietf.jgss.GSSException

        if (!this.isProtReady()) throw new GSSException(GSSException.NO_CONTEXT);
        throw new GSSException(GSSException.NO_CRED);
    }

    public GSSNameSpi getSrcName() throws GSSException {
        if (!this.isProtReady()) throw new GSSException(GSSException.NO_CONTEXT);
        return there;
    }
View Full Code Here

Examples of org.ietf.jgss.GSSException

        if (!this.isProtReady()) throw new GSSException(GSSException.NO_CONTEXT);
        return there;
    }

    public GSSNameSpi getTargName() throws GSSException {
        if (!this.isProtReady()) throw new GSSException(GSSException.NO_CONTEXT);
        return here;
    }
View Full Code Here

Examples of org.ietf.jgss.GSSException

                System.arraycopy(buf, 0, outBuf, offset, read);
                count += read;
            }
        } catch (IndexOutOfBoundsException e) {
            throw new GSSException(GSSException.FAILURE);
        } catch (IOException e) {
            throw new GSSException(GSSException.FAILURE);
        }
    }
View Full Code Here

Examples of org.ietf.jgss.GSSException

    public void wrap(byte inBuf[], int offset, int len, OutputStream outputStream, MessageProp messageProp) throws GSSException {
        checkLife();
        try {
            outputStream.write(inBuf, offset, len);
        } catch (IOException e) {
            throw new GSSException(GSSException.FAILURE);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.