public byte[] unwrap(final byte[] incoming, final int offset, final int len) throws SaslException { return saslServer.unwrap(incoming, offset, len); } }
public byte[] unwrap(byte[] buf, int off, int len) throws SaslException { return saslServer.unwrap(buf, off, len); }
public byte[] unwrap(final byte[] bytes, final int off, final int len) throws SaslException { return saslServer.unwrap(bytes, off, len); }
@Override public byte[] unwrap(byte[] incoming, int offset, int len) throws SaslException { return server.unwrap(incoming, offset, len); }
@Override public byte[] unwrap(byte[] data, int offset, int len) throws IOException { return server.unwrap(data, offset, len); }
public byte[] unwrap(final byte[] incoming, final int offset, final int len) throws SaslException { return delegate.unwrap(incoming, offset, len); }
public byte[] unwrap(final byte[] incoming, final int offset, final int len) throws SaslException { try { return doPrivileged((PrivilegedExceptionAction<byte[]>) () -> delegate.unwrap(incoming, offset, len), accessControlContext); } catch (PrivilegedActionException pae) { try { throw pae.getCause(); } catch (SaslException | RuntimeException | Error e) { throw e; } catch (Throwable throwable) { throw new UndeclaredThrowableException(throwable); } } }
public byte[] unwrap(byte[] buf) throws SaslException { if (client != null) return client.unwrap(buf, 0, buf.length); else return server.unwrap(buf, 0, buf.length); }
/** * Unwrap a message. Unwrapping occurs from the source buffer to the destination idea. * <p> * The {@code source} buffer should have its position and remaining length set to encompass exactly one SASL * message (without the length field). The SASL message itself does not encode any length information so it is up * to the protocol implementer to ensure that the message is properly framed. * * @param server the SASL server to unwrap with * @param source the buffers from which bytes should be read * @return the wrap result * @throws SaslException if a SASL error occurs * @see SaslServer#unwrap(byte[], int, int) */ public static byte[] unwrap(final SaslServer server, final ByteBuffer source) throws SaslException { final byte[] result; final int len = source.remaining(); if (len == 0) { result = server.unwrap(EMPTY_BYTES, 0, len); } else if (source.hasArray()) { final byte[] array = source.array(); final int offs = source.arrayOffset(); source.position(source.position() + len); result = server.unwrap(array, offs, len); } else { result = server.unwrap(Buffers.take(source, len), 0, len); } return result; }
+ " for processing by saslServer.unwrap()"); inBuf = saslServer.unwrap(inBuf, 0, inBuf.length); ReadableByteChannel ch = Channels.newChannel(new ByteArrayInputStream( inBuf));
obuffer = saslServer.unwrap(saslToken, 0, saslToken.length); } else { // using saslClient obuffer = saslClient.unwrap(saslToken, 0, saslToken.length);
public byte[] unwrap(byte[] buf, int off, int len) throws SaslException { if (saslClient != null) return saslClient.unwrap(buf, off, len); else return saslServer.unwrap(buf, off, len); }
@Override public byte[] unwrap(byte[] incoming, int offset, int len) throws SaslException { return server.unwrap(incoming, offset, len); }
@Override public byte[] unwrap(byte[] incoming, int offset, int len) throws SaslException { return server.unwrap(incoming, offset, len); }
public byte[] unwrap(final byte[] incoming, final int offset, final int len) throws SaslException { try { return doPrivileged((PrivilegedExceptionAction<byte[]>) () -> delegate.unwrap(incoming, offset, len), accessControlContext); } catch (PrivilegedActionException pae) { try { throw pae.getCause(); } catch (SaslException | RuntimeException | Error e) { throw e; } catch (Throwable throwable) { throw new UndeclaredThrowableException(throwable); } } }
public byte[] unwrap(byte[] buf, int off, int len) throws SaslException { if (saslClient != null) return saslClient.unwrap(buf, off, len); else return saslServer.unwrap(buf, off, len); }
public byte[] unwrap(byte[] buf) throws SaslException { if (client != null) return client.unwrap(buf, 0, buf.length); else return server.unwrap(buf, 0, buf.length); }
@Override public byte[] unwrap(byte[] data, int offset, int len) throws SaslException { checkState(saslServer != null); return saslServer.unwrap(data, offset, len); } };
public byte[] unwrap(byte[] buf, int off, int len) throws SaslException { if (saslClient != null) return saslClient.unwrap(buf, off, len); else return saslServer.unwrap(buf, off, len); }
public byte[] unwrap(byte[] buf, int off, int len) throws SaslException { if (saslClient != null) return saslClient.unwrap(buf, off, len); else return saslServer.unwrap(buf, off, len); }