Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


com.tangosol.net.security
Class PermissionInfo

java.lang.Object
  extended by com.tangosol.util.Base
      extended by com.tangosol.util.BitHelper
          extended by com.tangosol.util.ExternalizableHelper
              extended by com.tangosol.net.security.PermissionInfo

All Implemented Interfaces:
PortableObject, java.io.Externalizable, java.io.Serializable

public class PermissionInfo
extends ExternalizableHelper
implements java.io.Externalizable, PortableObject

PermissionInfo holds the information needed to validate and respond to a security related request.

Since:
Coherence 3.6
Author:
dag 2009.10.26

Constructor Summary
PermissionInfo()
          Default constructor (required by PortableObject).
PermissionInfo(ClusterPermission permission, java.lang.String sServiceName, java.security.SignedObject signedPermission, javax.security.auth.Subject subject)
          Construct a PermissionInfo.

 

Method Summary
 ClusterPermission getPermission()
          Return the ClusterPermission object.
 java.lang.String getServiceName()
          Return the service name.
 java.security.SignedObject getSignedPermission()
          Return the encrypted ClusterPermission object.
 javax.security.auth.Subject getSubject()
          Return the encryptor subject.
 void readExternal(java.io.ObjectInput in)
          
 void readExternal(PofReader in)
          Restore the contents of a user type instance by reading its state using the specified PofReader object.
 void writeExternal(java.io.ObjectOutput out)
          
 void writeExternal(PofWriter out)
          Save the contents of a POF user type instance by writing its state using the specified PofWriter object.

 

Methods inherited from class com.tangosol.util.BitHelper
countBits, countBits, countBits, indexOfLSB, indexOfLSB, indexOfLSB, indexOfMSB, indexOfMSB, indexOfMSB, rotateLeft, rotateLeft, rotateLeft, rotateRight, rotateRight, rotateRight, toBitString, toBitString, toBitString

 

Constructor Detail

PermissionInfo

public PermissionInfo()
Default constructor (required by PortableObject).

PermissionInfo

public PermissionInfo(ClusterPermission permission,
                      java.lang.String sServiceName,
                      java.security.SignedObject signedPermission,
                      javax.security.auth.Subject subject)
Construct a PermissionInfo.
Parameters:
permission - the ClusterPermission
sServiceName - the service name
signedPermission - the encrypted ClusterPermission
subject - the encryptor Subject

Method Detail

getPermission

public ClusterPermission getPermission()
Return the ClusterPermission object.
Returns:
the ClusterPermission object

getServiceName

public java.lang.String getServiceName()
Return the service name.
Returns:
the service name

getSignedPermission

public java.security.SignedObject getSignedPermission()
Return the encrypted ClusterPermission object.
Returns:
the encrypted ClusterPermission

getSubject

public javax.security.auth.Subject getSubject()
Return the encryptor subject.
Returns:
the encryptor subject

readExternal

public void readExternal(PofReader in)
                  throws java.io.IOException
Restore the contents of a user type instance by reading its state using the specified PofReader object.
Specified by:
readExternal in interface PortableObject
Parameters:
in - the PofReader from which to read the object's state
Throws:
java.io.IOException - if an I/O error occurs

writeExternal

public void writeExternal(PofWriter out)
                   throws java.io.IOException
Save the contents of a POF user type instance by writing its state using the specified PofWriter object.
Specified by:
writeExternal in interface PortableObject
Parameters:
out - the PofWriter to which to write the object's state
Throws:
java.io.IOException - if an I/O error occurs

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.