Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


weblogic.management
Class EncryptionHelper

java.lang.Object
  extended by weblogic.management.EncryptionHelper


public final class EncryptionHelper
extends Object

This class contains convenience methods for accessing encrypted MBean attributes.


Method Summary
static byte[] clear(byte[] bytes)
          Clears the byte array by replacing each byte with a zero.
static byte[] encrypt(byte[] bytes)
          Encrypts a byte array.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

encrypt

public static final byte[] encrypt(byte[] bytes)
                            throws EncryptionServiceException

Encrypts a byte array.

A JMX client that invokes setter methods for encrypted attributes in WebLogic Server MBeans does not need to invoke this encrypt(byte[] bytes) method: the MBean's setter method is responsible for converting its parameter data to a byte array and encrypting the data.

Parameters:
bytes - A byte array.
Returns:
Encrypted byte array.
Throws:
EncryptionServiceException

clear

public static byte[] clear(byte[] bytes)

Clears the byte array by replacing each byte with a zero. .

Parameters:
bytes - A byte array.
Returns:
A zero-filled byte array.

Skip navigation links

Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09