Tabnine Logo
SVNEncodingUtil.clearArray
Code IndexAdd Tabnine to your IDE (free)

How to use
clearArray
method
in
org.tmatesoft.svn.core.internal.util.SVNEncodingUtil

Best Java code snippets using org.tmatesoft.svn.core.internal.util.SVNEncodingUtil.clearArray (Showing top 16 results out of 315)

origin: org.tmatesoft.svnkit/svnkit

  public void dismissSensitiveData() {
    SVNEncodingUtil.clearArray(myPassphrase);
    SVNEncodingUtil.clearArray(myPassword);
  }
}
origin: org.tmatesoft.svnkit/svnkit

  public void clear() {
    SVNEncodingUtil.clearArray(myData);
    myValue = null;
  }
}
origin: org.tmatesoft.svnkit/svnkit

public static void clear(byte[] array) {
  SVNEncodingUtil.clearArray(array);
}
origin: org.tmatesoft.svnkit/svnkit

public static void clear(char[] array) {
  SVNEncodingUtil.clearArray(array);
}
origin: org.tmatesoft.svnkit/svnkit

@Override
public void dismissSensitiveData() {
  super.dismissSensitiveData();
  SVNEncodingUtil.clearArray(myPassphrase);
  SVNEncodingUtil.clearArray(myPassword);
  SVNEncodingUtil.clearArray(myPrivateKeyValue);
}
origin: org.tmatesoft.svnkit/svnkit

@Override
public void dismissSensitiveData() {
  super.dismissSensitiveData();
  SVNEncodingUtil.clearArray(myPassword);
}

origin: org.tmatesoft.svnkit/svnkit

@Override
public void dismissSensitiveData() {
  super.dismissSensitiveData();
  SVNEncodingUtil.clearArray(myPassword);
}
origin: org.tmatesoft.svnkit/svnkit

public static byte[] getBytes(final char[] data, String charset) {
  if (data == null) {
    return new byte[0];
  }
  final CharBuffer cb = CharBuffer.wrap(data);
  Charset chrst;
  try {
    chrst = Charset.forName(charset);
  } catch (UnsupportedCharsetException e) {
    chrst = Charset.defaultCharset();
  }
  try {
    ByteBuffer bb = chrst.newEncoder().encode(cb);
    final byte[] bytes = new byte[bb.limit()];
    bb.get(bytes);
    if (bb.hasArray()) {
      clearArray(bb.array());
    }
    return bytes;
  } catch (CharacterCodingException e) {
  }
  final byte[] bytes = new byte[data.length];
  for (int i = 0; i < data.length; i++) {
    bytes[i] = (byte) (data[i] & 0xFF);
  }
  return bytes;
}
origin: org.tmatesoft.svnkit/svnkit

public static char[] normalizeBase64(char[] in) {
  final CharBuffer cb = CharBuffer.allocate(in.length);
  for (int i = 0; i < in.length; i++) {
    if (Character.isWhitespace(in[i])) {
      continue;
    }
    cb.put(in[i]);
  }
  final char[] result;
  try {
    if (cb.position() == in.length) {
      result = in;
    } else {
      result = new char[cb.position()];
      cb.flip();
      cb.get(result);
    }
  } finally {
    if (cb.hasArray()) {
      SVNEncodingUtil.clearArray(cb.array());
    }
  }
  return result;
}
origin: org.tmatesoft.svnkit/svnkit

public String authenticate() {
  if (getUserName() == null || getPassword() == null) {
    return null;
  }
  
  StringBuffer result = new StringBuffer();
  final ByteArrayStream bos = new ByteArrayStream();
  try {
    bos.write(SVNEncodingUtil.getBytes(getUserName().toCharArray(), myCharset));
    bos.write(SVNEncodingUtil.getBytes(new char[] {':'}, myCharset));
    bos.write(SVNEncodingUtil.getBytes(getPassword(), myCharset));
  } catch (IOException e) {
    //
  }
  result.append("Basic ");
  byte[] bytes = bos.toByteArray();
  try {
    result.append(SVNBase64.byteArrayToBase64(bos.toByteArray()));
  } finally {
    SVNEncodingUtil.clearArray(bos.getBuffer());
    SVNEncodingUtil.clearArray(bytes);
  }
  return result.toString();
}
origin: org.tmatesoft.svnkit/svnkit

  library.SecKeychainSetUserInteractionAllowed(true);
SVNEncodingUtil.clearArray(rawPassword);
origin: org.tmatesoft.svnkit/svnkit

} finally {
  library.SecKeychainItemFreeContent(null, passwordPointer);
  SVNEncodingUtil.clearArray(rawPassword);
origin: org.tmatesoft.svnkit/svnkit

  passwordData.clear();
SVNEncodingUtil.clearArray(utf8Password);
origin: org.tmatesoft.svnkit/svnkit

byte[] decodedBuffer = new byte[decodedBytes];
System.arraycopy(buffer, 0, decodedBuffer, 0, decodedBytes);
SVNEncodingUtil.clearArray(buffer);
origin: org.tmatesoft.svnkit/svnkit

  return SVNEncodingUtil.getChars(password, "UTF-8");
} finally {
  SVNEncodingUtil.clearArray(password);
origin: org.tmatesoft.svnkit/svnkit

  passwordData.clear();
SVNEncodingUtil.clearArray(keyringUTF8Password);
org.tmatesoft.svn.core.internal.utilSVNEncodingUtilclearArray

Popular methods of SVNEncodingUtil

  • uriDecode
  • autoURIEncode
  • xmlEncodeCDATA
  • fuzzyEscape
  • isXMLSafe
  • assertURISafe
  • isASCIIControlChar
  • uriEncode
  • xmlEncodeAttr
  • createStringBuffer
  • hexValue
  • isHexDigit
  • hexValue,
  • isHexDigit,
  • xmlDecode,
  • copyOf,
  • getBytes,
  • getChars

Popular in Java

  • Making http post requests using okhttp
  • setScale (BigDecimal)
  • setRequestProperty (URLConnection)
  • putExtra (Intent)
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now