mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
8072996: Deprecate stream-based GSSContext methods
Reviewed-by: mullan
This commit is contained in:
parent
60b28c75c8
commit
154849b1c5
3 changed files with 55 additions and 0 deletions
|
@ -197,6 +197,7 @@ public class GSSContextImpl implements GSSContext {
|
|||
return (size == 0? null : bos.toByteArray());
|
||||
}
|
||||
|
||||
@Deprecated(since="11")
|
||||
public int initSecContext(InputStream inStream,
|
||||
OutputStream outStream) throws GSSException {
|
||||
|
||||
|
@ -305,6 +306,7 @@ public class GSSContextImpl implements GSSContext {
|
|||
return (out.length == 0) ? null : out;
|
||||
}
|
||||
|
||||
@Deprecated(since="11")
|
||||
public void acceptSecContext(InputStream inStream,
|
||||
OutputStream outStream) throws GSSException {
|
||||
|
||||
|
@ -405,6 +407,7 @@ public class GSSContextImpl implements GSSContext {
|
|||
"No mechanism context yet!");
|
||||
}
|
||||
|
||||
@Deprecated(since="11")
|
||||
public void wrap(InputStream inStream, OutputStream outStream,
|
||||
MessageProp msgProp) throws GSSException {
|
||||
if (mechCtxt != null)
|
||||
|
@ -423,6 +426,7 @@ public class GSSContextImpl implements GSSContext {
|
|||
"No mechanism context yet!");
|
||||
}
|
||||
|
||||
@Deprecated(since="11")
|
||||
public void unwrap(InputStream inStream, OutputStream outStream,
|
||||
MessageProp msgProp) throws GSSException {
|
||||
if (mechCtxt != null)
|
||||
|
@ -441,6 +445,7 @@ public class GSSContextImpl implements GSSContext {
|
|||
"No mechanism context yet!");
|
||||
}
|
||||
|
||||
@Deprecated(since="11")
|
||||
public void getMIC(InputStream inStream, OutputStream outStream,
|
||||
MessageProp msgProp) throws GSSException {
|
||||
if (mechCtxt != null)
|
||||
|
@ -461,6 +466,7 @@ public class GSSContextImpl implements GSSContext {
|
|||
"No mechanism context yet!");
|
||||
}
|
||||
|
||||
@Deprecated(since="11")
|
||||
public void verifyMIC(InputStream tokStream, InputStream msgStream,
|
||||
MessageProp msgProp) throws GSSException {
|
||||
if (mechCtxt != null)
|
||||
|
|
|
@ -281,6 +281,7 @@ public class SpNegoContext implements GSSContextSpi {
|
|||
* to its peer for processing.
|
||||
* @exception GSSException
|
||||
*/
|
||||
@Deprecated(since="11")
|
||||
public final byte[] initSecContext(InputStream is, int mechTokenSize)
|
||||
throws GSSException {
|
||||
|
||||
|
@ -475,6 +476,7 @@ public class SpNegoContext implements GSSContextSpi {
|
|||
* to its peer for processing.
|
||||
* @exception GSSException
|
||||
*/
|
||||
@Deprecated(since="11")
|
||||
public final byte[] acceptSecContext(InputStream is, int mechTokenSize)
|
||||
throws GSSException {
|
||||
|
||||
|
@ -1128,6 +1130,7 @@ public class SpNegoContext implements GSSContextSpi {
|
|||
}
|
||||
}
|
||||
|
||||
@Deprecated(since="11")
|
||||
public final void wrap(InputStream is, OutputStream os,
|
||||
MessageProp msgProp) throws GSSException {
|
||||
if (mechContext != null) {
|
||||
|
@ -1149,6 +1152,7 @@ public class SpNegoContext implements GSSContextSpi {
|
|||
}
|
||||
}
|
||||
|
||||
@Deprecated(since="11")
|
||||
public final void unwrap(InputStream is, OutputStream os,
|
||||
MessageProp msgProp) throws GSSException {
|
||||
if (mechContext != null) {
|
||||
|
@ -1170,6 +1174,7 @@ public class SpNegoContext implements GSSContextSpi {
|
|||
}
|
||||
}
|
||||
|
||||
@Deprecated(since="11")
|
||||
public final void getMIC(InputStream is, OutputStream os,
|
||||
MessageProp msgProp) throws GSSException {
|
||||
if (mechContext != null) {
|
||||
|
@ -1193,6 +1198,7 @@ public class SpNegoContext implements GSSContextSpi {
|
|||
}
|
||||
}
|
||||
|
||||
@Deprecated(since="11")
|
||||
public final void verifyMIC(InputStream is, InputStream msgStr,
|
||||
MessageProp msgProp) throws GSSException {
|
||||
if (mechContext != null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue