Tabnine Logo
ByteIterator.asUtf8String
Code IndexAdd Tabnine to your IDE (free)

How to use
asUtf8String
method
in
org.wildfly.security.util.ByteIterator

Best Java code snippets using org.wildfly.security.util.ByteIterator.asUtf8String (Showing top 9 results out of 315)

origin: wildfly/wildfly

/**
 * Get a code point iterator for a UTF-8 encoded array.
 *
 * @param bytes the array
 * @param offs the array offset
 * @param len the number of characters to include
 * @return the code point iterator
 */
public static CodePointIterator ofUtf8Bytes(final byte[] bytes, final int offs, final int len) {
  if (len <= 0) {
    return EMPTY;
  }
  return ByteIterator.ofBytes(bytes, offs, len).asUtf8String();
}
origin: wildfly/wildfly

final String b64Password = getProperty(properties, prefix + PROPERTY_KEY_PASSWORD_BASE64, null, expandPasswords);
if (b64Password != null) {
  setPassword(CodePointIterator.ofString(b64Password).base64Decode().asUtf8String().drainToString());
} else {
  final String password = getProperty(properties, prefix + PROPERTY_KEY_PASSWORD, null, expandPasswords);
origin: wildfly/wildfly

  globalAuthConf = globalAuthConf.useCredentials(credentials);
} else if (passwordBase64 != null) {
  globalAuthConf = globalAuthConf.usePassword(CodePointIterator.ofString(passwordBase64).base64Decode().asUtf8String().drainToString());
          authConfig = authConfig.usePassword(connPassword);
        } else if (connPasswordBase64 != null) {
          authConfig = authConfig.usePassword(CodePointIterator.ofString(connPasswordBase64).base64Decode().asUtf8String().drainToString());
origin: org.jboss.eap/wildfly-client-all

/**
 * Get a code point iterator for a UTF-8 encoded array.
 *
 * @param bytes the array
 * @param offs the array offset
 * @param len the number of characters to include
 * @return the code point iterator
 */
public static CodePointIterator ofUtf8Bytes(final byte[] bytes, final int offs, final int len) {
  if (len <= 0) {
    return EMPTY;
  }
  return ByteIterator.ofBytes(bytes, offs, len).asUtf8String();
}
origin: org.wildfly.security/wildfly-elytron

/**
 * Get a code point iterator for a UTF-8 encoded array.
 *
 * @param bytes the array
 * @param offs the array offset
 * @param len the number of characters to include
 * @return the code point iterator
 */
public static CodePointIterator ofUtf8Bytes(final byte[] bytes, final int offs, final int len) {
  if (len <= 0) {
    return EMPTY;
  }
  return ByteIterator.ofBytes(bytes, offs, len).asUtf8String();
}
origin: org.jboss.eap/wildfly-client-all

final String b64Password = getProperty(properties, prefix + PROPERTY_KEY_PASSWORD_BASE64, null, expandPasswords);
if (b64Password != null) {
  setPassword(CodePointIterator.ofString(b64Password).base64Decode().asUtf8String().drainToString());
} else {
  final String password = getProperty(properties, prefix + PROPERTY_KEY_PASSWORD, null, expandPasswords);
origin: wildfly/jboss-ejb-client

final String b64Password = getProperty(properties, prefix + PROPERTY_KEY_PASSWORD_BASE64, null, expandPasswords);
if (b64Password != null) {
  setPassword(CodePointIterator.ofString(b64Password).base64Decode().asUtf8String().drainToString());
} else {
  final String password = getProperty(properties, prefix + PROPERTY_KEY_PASSWORD, null, expandPasswords);
origin: org.wildfly/wildfly-naming-client

  globalAuthConf = globalAuthConf.useCredentials(credentials);
} else if (passwordBase64 != null) {
  globalAuthConf = globalAuthConf.usePassword(CodePointIterator.ofString(passwordBase64).base64Decode().asUtf8String().drainToString());
          authConfig = authConfig.usePassword(connPassword);
        } else if (connPasswordBase64 != null) {
          authConfig = authConfig.usePassword(CodePointIterator.ofString(connPasswordBase64).base64Decode().asUtf8String().drainToString());
origin: org.jboss.eap/wildfly-client-all

  globalAuthConf = globalAuthConf.useCredentials(credentials);
} else if (passwordBase64 != null) {
  globalAuthConf = globalAuthConf.usePassword(CodePointIterator.ofString(passwordBase64).base64Decode().asUtf8String().drainToString());
          authConfig = authConfig.usePassword(connPassword);
        } else if (connPasswordBase64 != null) {
          authConfig = authConfig.usePassword(CodePointIterator.ofString(connPasswordBase64).base64Decode().asUtf8String().drainToString());
org.wildfly.security.utilByteIteratorasUtf8String

Javadoc

Get this byte iterator as a UTF-8 string.

Popular methods of ByteIterator

  • drain
    Drains up to len bytes from this iterator into the given dst array. An attempt is made to drain as m
  • ofBytes
    Get a byte iterator for a byte array with interleave.
  • appendTo
  • asLatin1String
    Get this byte iterator as a Latin-1 string.
  • base32Encode
    Base32-encode the current stream.
  • base64Encode
    Base64-encode the current stream.
  • drainTo
    Drain all the remaining bytes in this iterator to the given stream.
  • hasNext
    Determine if there are more bytes after the current byte.
  • hasPrev
    Determine if there are more bytes before the current byte.
  • hexEncode
    Hex-encode the current stream.
  • next
    Get the next byte.
  • offset
    Get the current offset, in bytes.
  • next,
  • offset,
  • peekNext,
  • peekPrev,
  • prev,
  • update,
  • hexDecode

Popular in Java

  • Reading from database using SQL prepared statement
  • getSystemService (Context)
  • getSharedPreferences (Context)
  • getApplicationContext (Context)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Notification (javax.management)
  • Top plugins for Android Studio
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