Tabnine Logo
PlexusCipher.unDecorate
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: io.fabric8/fabric-maven

@Override
public String decrypt(String str) throws SecDispatcherException {
  if (!isEncryptedString(str)) {
    return str;
  }
  String bare = null;
  try {
    bare = cipher.unDecorate(str);
  } catch (PlexusCipherException e1) {
    throw new SecDispatcherException(e1);
  }
  Map<String, String> attr = stripAttributes(bare);
  String res = null;
  if (attr == null || attr.get("type") == null) {
    String master = getMaster();
    try {
      res = cipher.decrypt(bare, master);
    } catch (PlexusCipherException e) {
      throw new SecDispatcherException("Unable to decrypt encrypted string", e);
    }
  }
  else {
    String type = (String) attr.get(TYPE_ATTR);
    throw new UnsupportedOperationException("Unable to lookup security dispatched of type " + type);
  }
  return res;
}
origin: org.jboss.shrinkwrap.resolver/shrinkwrap-resolver-impl-maven

@Override
public String decrypt(String str) throws SecDispatcherException {
  if (!isEncryptedString(str)) {
    return str;
  }
  String bare = null;
  try {
    bare = cipher.unDecorate(str);
  } catch (PlexusCipherException e1) {
    throw new SecDispatcherException(e1);
  }
  Map<String, String> attr = stripAttributes(bare);
  String res = null;
  if (attr == null || attr.get("type") == null) {
    String master = getMaster();
    try {
      res = cipher.decrypt(bare, master);
    } catch (PlexusCipherException e) {
      throw new SecDispatcherException("Unable to decrypt encrypted string", e);
    }
  }
  else {
    String type = (String) attr.get(TYPE_ATTR);
    throw new UnsupportedOperationException("Unable to lookup security dispatched of type " + type);
  }
  return res;
}
origin: shrinkwrap/resolver

@Override
public String decrypt(String str) throws SecDispatcherException {
  if (!isEncryptedString(str)) {
    return str;
  }
  String bare = null;
  try {
    bare = cipher.unDecorate(str);
  } catch (PlexusCipherException e1) {
    throw new SecDispatcherException(e1);
  }
  Map<String, String> attr = stripAttributes(bare);
  String res = null;
  if (attr == null || attr.get("type") == null) {
    String master = getMaster();
    try {
      res = cipher.decrypt(bare, master);
    } catch (PlexusCipherException e) {
      throw new SecDispatcherException("Unable to decrypt encrypted string", e);
    }
  }
  else {
    String type = (String) attr.get(TYPE_ATTR);
    throw new UnsupportedOperationException("Unable to lookup security dispatched of type " + type);
  }
  return res;
}
origin: org.sonatype.plexus/plexus-sec-dispatcher

bare = _cipher.unDecorate( str );
org.sonatype.plexus.components.cipherPlexusCipherunDecorate

Popular methods of PlexusCipher

  • isEncryptedString
  • decryptDecorated
  • decrypt
  • encryptAndDecorate

Popular in Java

  • Finding current android device location
  • putExtra (Intent)
  • addToBackStack (FragmentTransaction)
  • getResourceAsStream (ClassLoader)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • 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