Subject instance. Note, that this Converter does only convert the contained Principals as
it is done by JDK serialization, but not any credentials. For other behaviour you can derive your own converter,
overload the appropriate methods and register it in the com.thoughtworks.xstream.XStream .
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canConvert(Class<T>
the Class representing the object type to be converted type)Implements abstract com. Implements com. |
| public void | marshal(Object
The object to be marshalled. source, HierarchicalStreamWriter A stream to write to. writer, MarshallingContext A context that allows nested objects to be processed by XStream. context)Implements abstract com. Implements com. |
| protected void | |
| protected void | marshalPrivateCredentials(Set<E> privCredentials, HierarchicalStreamWriter writer, MarshallingContext context)
|
| protected void | marshalPublicCredentials(Set<E> pubCredentials, HierarchicalStreamWriter writer, MarshallingContext context)
|
| protected void | |
| protected Set | |
| public Object | unmarshal(HierarchicalStreamReader
The stream to read the text from. reader, UnmarshallingContext context)Implements abstract com. Implements com. |
| protected Set | |
| protected Set | |
| protected Set | |
| protected boolean |
| SubjectConverter | back to summary |
|---|---|
| public SubjectConverter(Mapper mapper) | |
| canConvert | back to summary |
|---|---|
| public boolean canConvert(Class<T> type) Implements abstract com. Implements com. Doc from com. Determines whether the converter can marshall a particular type.
| |
| marshal | back to summary |
|---|---|
| public void marshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context) Implements abstract com. Implements com. Doc from com. Convert an object to textual data.
| |
| marshalPrincipals | back to summary |
|---|---|
| protected void marshalPrincipals(Set<E> principals, HierarchicalStreamWriter writer, MarshallingContext context) | |
| marshalPrivateCredentials | back to summary |
|---|---|
| protected void marshalPrivateCredentials(Set<E> privCredentials, HierarchicalStreamWriter writer, MarshallingContext context) | |
| marshalPublicCredentials | back to summary |
|---|---|
| protected void marshalPublicCredentials(Set<E> pubCredentials, HierarchicalStreamWriter writer, MarshallingContext context) | |
| marshalReadOnly | back to summary |
|---|---|
| protected void marshalReadOnly(boolean readOnly, HierarchicalStreamWriter writer) | |
| populateSet | back to summary |
|---|---|
| protected Set | |
| unmarshal | back to summary |
|---|---|
| public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) Implements abstract com. Implements com. Doc from com. Convert textual data back into an object.
| |
| unmarshalPrincipals | back to summary |
|---|---|
| protected Set | |
| unmarshalPrivateCredentials | back to summary |
|---|---|
| protected Set | |
| unmarshalPublicCredentials | back to summary |
|---|---|
| protected Set | |
| unmarshalReadOnly | back to summary |
|---|---|
| protected boolean unmarshalReadOnly(HierarchicalStreamReader reader) | |