congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
PlexusCipher.isEncryptedString
Code IndexAdd Tabnine to your IDE (free)

How to use
isEncryptedString
method
in
org.sonatype.plexus.components.cipher.PlexusCipher

Best Java code snippets using org.sonatype.plexus.components.cipher.PlexusCipher.isEncryptedString (Showing top 9 results out of 315)

origin: org.jboss.shrinkwrap.resolver/shrinkwrap-resolver-impl-maven

private boolean isEncryptedString(String str) {
  if (str == null) {
    return false;
  }
  return cipher.isEncryptedString(str);
}
origin: io.fabric8/fabric-maven

private boolean isEncryptedString(String str) {
  if (str == null) {
    return false;
  }
  return cipher.isEncryptedString(str);
}
origin: shrinkwrap/resolver

private boolean isEncryptedString(String str) {
  if (str == null) {
    return false;
  }
  return cipher.isEncryptedString(str);
}
origin: org.sonatype.plexus/plexus-sec-dispatcher

private boolean isEncryptedString( String str )
{
  if( str == null )
    return false;
  return _cipher.isEncryptedString( str );
}
//----------------------------------------------------------------------------
origin: apache/maven-release

private boolean isEncryptedString( String str )
{
  return cipher.isEncryptedString( str );
}
origin: org.sonatype.nexus/nexus-configuration

public String encrypt( String password, String encoding )
  throws PlexusCipherException
{
  // check if the password is encrypted
  if ( plexusCipher.isEncryptedString( password ) )
  {
    return password;
  }
  if ( password != null )
  {
    return plexusCipher.encryptAndDecorate( password, encoding );
  }
  return null;
}
origin: org.sonatype.nexus/nexus-configuration

  public String decrypt( String encodedPassword, String encoding )
    throws PlexusCipherException
  {
    // check if the password is encrypted
    if ( !plexusCipher.isEncryptedString( encodedPassword ) )
    {
      return encodedPassword;
    }

    if ( encodedPassword != null )
    {
      return plexusCipher.decryptDecorated( encodedPassword, encoding );
    }
    return null;
  }
}
origin: org.sonatype.security/security-configuration

  public String decrypt( String encodedPassword, String encoding )
    throws PlexusCipherException
  {
    // check if the password is encrypted
    if ( !plexusCipher.isEncryptedString( encodedPassword ) )
    {
      return encodedPassword;
    }

    if ( encodedPassword != null )
    {
      return plexusCipher.decryptDecorated( encodedPassword, encoding );
    }
    return null;
  }
}
origin: gradle.plugin.org.datlowe.maven-publish-auth/buildSrc

/**
 * Gets a {@link PasswordProcessor} instance for the given password.
 *
 * @param password The password to handle.
 * @return A processor for the given password.
 */
public static PasswordProcessor getInstance(String password) {
  PlexusCipher cipher = buildCipher();
  if ( cipher == null || !cipher.isEncryptedString( password ) ) {
    return new DefaultPasswordProcessor( password );
  }
  else {
    return new DecryptionProcessor( password, cipher );
  }
}
org.sonatype.plexus.components.cipherPlexusCipherisEncryptedString

Popular methods of PlexusCipher

  • decryptDecorated
  • decrypt
  • unDecorate
  • encryptAndDecorate

Popular in Java

  • Reactive rest calls using spring rest template
  • getApplicationContext (Context)
  • onCreateOptionsMenu (Activity)
  • getSystemService (Context)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top 12 Jupyter Notebook extensions
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