public class ObjectInputStreamWithClassLoader extends ObjectInputStream
ObjectInputStream.GetField
Modifier and Type | Field and Description |
---|---|
static String |
BLACKLIST_PROPERTY |
static String |
CATCH_ALL_WILDCARD
Value used to indicate that all classes should be white or black listed,
|
static String |
WHITELIST_PROPERTY |
baseWireHandle, PROTOCOL_VERSION_1, PROTOCOL_VERSION_2, SC_BLOCK_DATA, SC_ENUM, SC_EXTERNALIZABLE, SC_SERIALIZABLE, SC_WRITE_METHOD, STREAM_MAGIC, STREAM_VERSION, SUBCLASS_IMPLEMENTATION_PERMISSION, SUBSTITUTION_PERMISSION, TC_ARRAY, TC_BASE, TC_BLOCKDATA, TC_BLOCKDATALONG, TC_CLASS, TC_CLASSDESC, TC_ENDBLOCKDATA, TC_ENUM, TC_EXCEPTION, TC_LONGSTRING, TC_MAX, TC_NULL, TC_OBJECT, TC_PROXYCLASSDESC, TC_REFERENCE, TC_RESET, TC_STRING
Constructor and Description |
---|
ObjectInputStreamWithClassLoader(InputStream in) |
Modifier and Type | Method and Description |
---|---|
String |
getBlackList() |
String |
getWhiteList() |
protected Class |
resolveClass(ObjectStreamClass desc) |
protected Class |
resolveProxyClass(String[] interfaces) |
void |
setBlackList(String blackList)
Replaces the currently configured blackList with a comma separated
string containing the new blackList.
|
void |
setWhiteList(String whiteList)
Replaces the currently configured whiteList with a comma separated
string containing the new whiteList.
|
available, close, defaultReadObject, enableResolveObject, read, read, readBoolean, readByte, readChar, readClassDescriptor, readDouble, readFields, readFloat, readFully, readFully, readInt, readLine, readLong, readObject, readObjectOverride, readShort, readStreamHeader, readUnshared, readUnsignedByte, readUnsignedShort, readUTF, registerValidation, resolveObject, skipBytes
mark, markSupported, read, reset, skip
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
read, skip
public static final String CATCH_ALL_WILDCARD
public static final String WHITELIST_PROPERTY
public static final String BLACKLIST_PROPERTY
public ObjectInputStreamWithClassLoader(InputStream in) throws IOException
IOException
public String getWhiteList()
public String getBlackList()
public void setWhiteList(String whiteList)
whiteList
- the whiteList that this policy is configured to recognize.public void setBlackList(String blackList)
blackList
- the blackList that this policy is configured to recognize.protected Class resolveClass(ObjectStreamClass desc) throws IOException, ClassNotFoundException
resolveClass
in class ObjectInputStream
IOException
ClassNotFoundException
protected Class resolveProxyClass(String[] interfaces) throws IOException, ClassNotFoundException
resolveProxyClass
in class ObjectInputStream
IOException
ClassNotFoundException
Copyright © 2018 JBoss by Red Hat. All rights reserved.