Tabnine Logo
IteratedSaltedHashPasswordSpec.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.wildfly.security.password.spec.IteratedSaltedHashPasswordSpec
constructor

Best Java code snippets using org.wildfly.security.password.spec.IteratedSaltedHashPasswordSpec.<init> (Showing top 20 results out of 315)

origin: wildfly/wildfly

@Override
<S extends KeySpec> S getKeySpec(Class<S> keySpecType) throws InvalidKeySpecException {
  if (keySpecType.isAssignableFrom(IteratedSaltedHashPasswordSpec.class)) {
    return keySpecType.cast(new IteratedSaltedHashPasswordSpec(this.getHash(), this.getSalt(), this.getIterationCount()));
  } else {
    throw log.invalidKeySpecExpectedSpecGotSpec(IteratedSaltedHashPasswordSpec.class.getName(), keySpecType.getName());
  }
}
origin: wildfly/wildfly

<S extends KeySpec> S getKeySpec(final Class<S> keySpecType) throws InvalidKeySpecException {
  if (keySpecType.isAssignableFrom(IteratedSaltedHashPasswordSpec.class)) {
    return keySpecType.cast(new IteratedSaltedHashPasswordSpec(hash.clone(), getSaltBytes(salt), iterationCount));
  }
  throw new InvalidKeySpecException();
}
origin: wildfly/wildfly

@Override
<S extends KeySpec> S getKeySpec(final Class<S> keySpecType) throws InvalidKeySpecException {
  if (keySpecType.isAssignableFrom(IteratedSaltedHashPasswordSpec.class)) {
    return keySpecType.cast(new IteratedSaltedHashPasswordSpec(getHash(), getSalt(), getIterationCount()));
  }
  throw new InvalidKeySpecException();
}
origin: wildfly/wildfly

@Override
<S extends KeySpec> S getKeySpec(Class<S> keySpecType) throws InvalidKeySpecException {
  if (keySpecType.isAssignableFrom(IteratedSaltedHashPasswordSpec.class)) {
    return keySpecType.cast(new IteratedSaltedHashPasswordSpec(this.getHash(), this.getSalt(), this.getIterationCount()));
  }
  throw new InvalidKeySpecException();
}
origin: wildfly/wildfly

@Override
<S extends KeySpec> S getKeySpec(Class<S> keySpecType) throws InvalidKeySpecException {
  if (keySpecType.isAssignableFrom(IteratedSaltedHashPasswordSpec.class)) {
    return keySpecType.cast(new IteratedSaltedHashPasswordSpec(this.getDigest(), this.getSalt(), this.getIterationCount()));
  }
  throw new InvalidKeySpecException();
}
origin: wildfly/wildfly

private static PasswordSpec decodeIteratedSaltedHashPasswordSpec(ByteIterator iterator) {
  int iterationCount = iterator.getPackedBE32();
  byte[] salt = iterator.drain(iterator.getPackedBE32());
  byte[] hash = iterator.drain();
  return new IteratedSaltedHashPasswordSpec(hash, salt, iterationCount);
}
origin: wildfly/wildfly

final int iterationCount = decoder.decodeInteger().intValue();
decoder.endSequence();
passwordSpec = new IteratedSaltedHashPasswordSpec(hash, salt, iterationCount);
break;
origin: wildfly/wildfly

if (salt != null) {
  if (iterationCount > 0) {
    passwordSpec = new IteratedSaltedHashPasswordSpec(hash, salt, iterationCount);
  } else {
    passwordSpec = new SaltedHashPasswordSpec(hash, salt);
origin: org.jboss.eap/wildfly-client-all

@Override
<S extends KeySpec> S getKeySpec(Class<S> keySpecType) throws InvalidKeySpecException {
  if (keySpecType.isAssignableFrom(IteratedSaltedHashPasswordSpec.class)) {
    return keySpecType.cast(new IteratedSaltedHashPasswordSpec(this.getHash(), this.getSalt(), this.getIterationCount()));
  } else {
    throw log.invalidKeySpecExpectedSpecGotSpec(IteratedSaltedHashPasswordSpec.class.getName(), keySpecType.getName());
  }
}
origin: org.wildfly.security/wildfly-elytron

<S extends KeySpec> S getKeySpec(final Class<S> keySpecType) throws InvalidKeySpecException {
  if (keySpecType.isAssignableFrom(IteratedSaltedHashPasswordSpec.class)) {
    return keySpecType.cast(new IteratedSaltedHashPasswordSpec(hash.clone(), getSaltBytes(salt), iterationCount));
  }
  throw new InvalidKeySpecException();
}
origin: org.wildfly.security/wildfly-elytron

@Override
<S extends KeySpec> S getKeySpec(Class<S> keySpecType) throws InvalidKeySpecException {
  if (keySpecType.isAssignableFrom(IteratedSaltedHashPasswordSpec.class)) {
    return keySpecType.cast(new IteratedSaltedHashPasswordSpec(this.getHash(), this.getSalt(), this.getIterationCount()));
  } else {
    throw log.invalidKeySpecExpectedSpecGotSpec(IteratedSaltedHashPasswordSpec.class.getName(), keySpecType.getName());
  }
}
origin: org.wildfly.security/wildfly-elytron-credential

@Override
<S extends KeySpec> S getKeySpec(Class<S> keySpecType) throws InvalidKeySpecException {
  if (keySpecType.isAssignableFrom(IteratedSaltedHashPasswordSpec.class)) {
    return keySpecType.cast(new IteratedSaltedHashPasswordSpec(this.getHash(), this.getSalt(), this.getIterationCount()));
  } else {
    throw log.invalidKeySpecExpectedSpecGotSpec(IteratedSaltedHashPasswordSpec.class.getName(), keySpecType.getName());
  }
}
origin: org.wildfly.security/wildfly-elytron-credential

@Override
<S extends KeySpec> S getKeySpec(final Class<S> keySpecType) throws InvalidKeySpecException {
  if (keySpecType.isAssignableFrom(IteratedSaltedHashPasswordSpec.class)) {
    return keySpecType.cast(new IteratedSaltedHashPasswordSpec(getHash(), getSalt(), getIterationCount()));
  }
  throw new InvalidKeySpecException();
}
origin: org.wildfly.security/wildfly-elytron

@Override
<S extends KeySpec> S getKeySpec(Class<S> keySpecType) throws InvalidKeySpecException {
  if (keySpecType.isAssignableFrom(IteratedSaltedHashPasswordSpec.class)) {
    return keySpecType.cast(new IteratedSaltedHashPasswordSpec(this.getDigest(), this.getSalt(), this.getIterationCount()));
  }
  throw new InvalidKeySpecException();
}
origin: org.wildfly.security/wildfly-elytron

@Override
<S extends KeySpec> S getKeySpec(Class<S> keySpecType) throws InvalidKeySpecException {
  if (keySpecType.isAssignableFrom(IteratedSaltedHashPasswordSpec.class)) {
    return keySpecType.cast(new IteratedSaltedHashPasswordSpec(this.getHash(), this.getSalt(), this.getIterationCount()));
  }
  throw new InvalidKeySpecException();
}
origin: org.wildfly.security/wildfly-elytron-credential

@Override
<S extends KeySpec> S getKeySpec(Class<S> keySpecType) throws InvalidKeySpecException {
  if (keySpecType.isAssignableFrom(IteratedSaltedHashPasswordSpec.class)) {
    return keySpecType.cast(new IteratedSaltedHashPasswordSpec(this.getDigest(), this.getSalt(), this.getIterationCount()));
  }
  throw new InvalidKeySpecException();
}
origin: org.jboss.eap/wildfly-client-all

@Override
<S extends KeySpec> S getKeySpec(Class<S> keySpecType) throws InvalidKeySpecException {
  if (keySpecType.isAssignableFrom(IteratedSaltedHashPasswordSpec.class)) {
    return keySpecType.cast(new IteratedSaltedHashPasswordSpec(this.getDigest(), this.getSalt(), this.getIterationCount()));
  }
  throw new InvalidKeySpecException();
}
origin: org.wildfly.security/wildfly-elytron

@Override
<S extends KeySpec> S getKeySpec(final Class<S> keySpecType) throws InvalidKeySpecException {
  if (keySpecType.isAssignableFrom(IteratedSaltedHashPasswordSpec.class)) {
    return keySpecType.cast(new IteratedSaltedHashPasswordSpec(getHash(), getSalt(), getIterationCount()));
  }
  throw new InvalidKeySpecException();
}
origin: org.wildfly.security/wildfly-elytron

private static PasswordSpec decodeIteratedSaltedHashPasswordSpec(ByteIterator iterator) {
  int iterationCount = iterator.getPackedBE32();
  byte[] salt = iterator.drain(iterator.getPackedBE32());
  byte[] hash = iterator.drain();
  return new IteratedSaltedHashPasswordSpec(hash, salt, iterationCount);
}
origin: org.jboss.eap/wildfly-client-all

private static PasswordSpec decodeIteratedSaltedHashPasswordSpec(ByteIterator iterator) {
  int iterationCount = iterator.getPackedBE32();
  byte[] salt = iterator.drain(iterator.getPackedBE32());
  byte[] hash = iterator.drain();
  return new IteratedSaltedHashPasswordSpec(hash, salt, iterationCount);
}
org.wildfly.security.password.specIteratedSaltedHashPasswordSpec<init>

Javadoc

Construct a new instance.

Popular methods of IteratedSaltedHashPasswordSpec

  • getHash
    Get a password hash bytes.
  • getIterationCount
    Get the iteration count.
  • getSalt
    Get the salt bytes.

Popular in Java

  • Making http post requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • findViewById (Activity)
  • startActivity (Activity)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Socket (java.net)
    Provides a client-side TCP socket.
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Best IntelliJ 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