@Override public byte[] unwrap(byte[] incoming, int offset, int len) throws SaslException { MessageProp prop = new MessageProp(0, confidential); try { byte[] response = gssContext.unwrap(incoming, offset, len, prop); saslGssapi.tracef("Unwrapping message of length '%d' resulting message of length '%d'", len, response.length); return response; } catch (GSSException e) { throw saslGssapi.mechUnableToUnwrapMessage(e).toSaslException(); } }
@Override public byte[] wrap(byte[] outgoing, int offset, int len) throws SaslException { MessageProp prop = new MessageProp(0, confidential); try { byte[] response = gssContext.wrap(outgoing, offset, len, prop); saslGssapi.tracef("Wrapping message of length '%d' resulting message of length '%d'", len, response.length); return response; } catch (GSSException e) { throw saslGssapi.mechUnableToWrapMessage(e).toSaslException(); } }
assert gssContext.isEstablished(); MessageProp msgProp = new MessageProp(0, false); try { byte[] unwrapped = gssContext.unwrap(message, 0, message.length, msgProp); msgProp = new MessageProp(0, false); response = gssContext.wrap(response, 0, response.length, msgProp);
MessageProp msgProp = new MessageProp(0, false); response = gssContext.wrap(response, 0, 4, msgProp); } catch (GSSException e) { MessageProp msgProp = new MessageProp(0, false); byte[] unwrapped; try {
public byte[] getMIC(byte[] message, int s, int l){ try{ MessageProp prop = new MessageProp(0, true); return context.getMIC(message, s, l, prop); } catch(GSSException ex){ return null; } }
@Override public byte[] getMIC(byte[] message, int offset, int length) { try { return _context.getMIC(message, offset, length, new MessageProp(0, true)); } catch(GSSException ex) { return null; } }
MicTokenV2(GssContext context, byte[] inMsg, int msgOffset, int msgLength, MessageProp messageProp) throws GSSException { super(TOKEN_MIC_V2, context); prop = messageProp; if (prop == null) { prop = new MessageProp(0, false); } generateCheckSum(prop, inMsg, msgOffset, msgLength); }
public byte[] getMIC(byte[] message, int s, int l){ try{ MessageProp prop = new MessageProp(0, true); return context.getMIC(message, s, l, prop); } catch(GSSException ex){ return null; } }
public byte[] getMIC(byte[] message, int s, int l){ try{ MessageProp prop = new MessageProp(0, true); return context.getMIC(message, s, l, prop); } catch(GSSException ex){ return null; } }
public byte[] getMIC(byte[] message, int s, int l){ try{ MessageProp prop = new MessageProp(0, true); return context.getMIC(message, s, l, prop); } catch(GSSException ex){ return null; } }
@Override protected byte[] encryptInternal(final byte[] bytes) throws EncryptionCodecException { LOGGER.trace("encryptInternal() called..."); try { LOGGER.debug("Encrypting content with context.wrap()..."); return context.wrap(bytes, 0, bytes.length, new MessageProp(0, true)); } catch (final GSSException gsse) { throw new EncryptionCodecException("Unable to encrypt the outgoing ACI data.", gsse); } }
@Override protected byte[] decryptInternal(final byte[] bytes) throws EncryptionCodecException { LOGGER.trace("decryptInternal() called..."); try { LOGGER.debug("Decrypting content with context.unwrap()..."); return context.unwrap(bytes, 0, bytes.length, new MessageProp(0, true)); } catch (final GSSException gsse) { throw new EncryptionCodecException("Unable to decrypt the incoming ACI data.", gsse); } }
public byte[] getMIC(byte[] message, int s, int l) { try { MessageProp prop = new MessageProp(0, false); return context.getMIC(message, s, l, prop); } catch (GSSException ex) { logger.error(ex.getMessage(), ex); return null; } }
public byte[] run() throws Exception { final GSSContext context = getTicketValidation().getGssContext(); return context.unwrap(data, offset, length, new MessageProp(true)); } });
public byte[] run() throws Exception { final GSSContext context = getTicketValidation().getGssContext(); return context.wrap(data, offset, length, new MessageProp(true)); } });
@Override public byte[] wrap(byte[] outgoing, int offset, int len) throws SaslException { MessageProp prop = new MessageProp(0, confidential); try { byte[] response = gssContext.wrap(outgoing, offset, len, prop); saslGssapi.tracef("Wrapping message of length '%d' resulting message of length '%d'", len, response.length); return response; } catch (GSSException e) { throw saslGssapi.mechUnableToWrapMessage(e).toSaslException(); } }
@Override public byte[] unwrap(byte[] incoming, int offset, int len) throws SaslException { MessageProp prop = new MessageProp(0, confidential); try { byte[] response = gssContext.unwrap(incoming, offset, len, prop); saslGssapi.tracef("Unwrapping message of length '%d' resulting message of length '%d'", len, response.length); return response; } catch (GSSException e) { throw saslGssapi.mechUnableToUnwrapMessage(e).toSaslException(); } }
@Override public byte[] wrap(byte[] outgoing, int offset, int len) throws SaslException { MessageProp prop = new MessageProp(0, confidential); try { byte[] response = gssContext.wrap(outgoing, offset, len, prop); saslGssapi.tracef("Wrapping message of length '%d' resulting message of length '%d'", len, response.length); return response; } catch (GSSException e) { throw saslGssapi.mechUnableToWrapMessage(e).toSaslException(); } }
@Override public byte[] unwrap(byte[] incoming, int offset, int len) throws SaslException { MessageProp prop = new MessageProp(0, confidential); try { byte[] response = gssContext.unwrap(incoming, offset, len, prop); saslGssapi.tracef("Unwrapping message of length '%d' resulting message of length '%d'", len, response.length); return response; } catch (GSSException e) { throw saslGssapi.mechUnableToUnwrapMessage(e).toSaslException(); } }
@Override public byte[] unwrap(byte[] incoming, int offset, int len) throws SaslException { MessageProp prop = new MessageProp(0, confidential); try { byte[] response = gssContext.unwrap(incoming, offset, len, prop); saslGssapi.tracef("Unwrapping message of length '%d' resulting message of length '%d'", len, response.length); return response; } catch (GSSException e) { throw saslGssapi.mechUnableToUnwrapMessage(e).toSaslException(); } }