jdk/src/java.security.jgss/share/classes/sun/security/jgss/krb5/MessageToken.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
180 init(tokenId, context); |
180 init(tokenId, context); |
181 |
181 |
182 try { |
182 try { |
183 gssHeader = new GSSHeader(is); |
183 gssHeader = new GSSHeader(is); |
184 |
184 |
185 if (!gssHeader.getOid().equals((Object)OID)) { |
185 if (!gssHeader.getOid().equals(OID)) { |
186 throw new GSSException(GSSException.DEFECTIVE_TOKEN, -1, |
186 throw new GSSException(GSSException.DEFECTIVE_TOKEN, -1, |
187 getTokenName(tokenId)); |
187 getTokenName(tokenId)); |
188 } |
188 } |
189 if (!confState) { |
189 if (!confState) { |
190 prop.setPrivacy(false); |
190 prop.setPrivacy(false); |