Provides a vector that employs content protection on its contained elements.
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
ContentProtectedVector(int initialCapacity)
Creates a new ContentProtectedVector instance of specified capacity,
automatically protecting its contents.
ContentProtectedVector(int initialCapacity,
int capacityIncrement)
Creates a new ContentProtectedVector instance with specified capacity
and capacity increment, automatically protecting its contents.
ContentProtectedVector(int initialCapacity,
int capacityIncrement,
boolean protect)
Creates a new ContentProtectedVector instance with specified capacity
and capacity incrememt.
Method Summary
void
addElement(Object obj)
Adds provided element to the end of this vector.
boolean
checkCrypt()
Determines if this vector's contents are protected properly.
void
copyInto(Object[] anArray)
Copies this vector's components into the provided array.
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
ContentProtectedVector
public ContentProtectedVector(boolean protect)
Creates a new ContentProtectedVector instance.
Parameters:
protect - If true, automatically encrypt content; if false, content
only encrypted when the reCrypt() call deems it necessary.
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
ContentProtectedVector
public ContentProtectedVector(int initialCapacity)
Creates a new ContentProtectedVector instance of specified capacity,
automatically protecting its contents.
This constructor automatically invokes reCrypt() after
creation.
Parameters:
initialCapacity - Initial capacity for this vector.
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
ContentProtectedVector
public ContentProtectedVector(int initialCapacity,
int capacityIncrement)
Creates a new ContentProtectedVector instance with specified capacity
and capacity increment, automatically protecting its contents.
This constructor automatically invokes reCrypt() after
creation.
Parameters:
initialCapacity - Initial capacity for this vector.
capacityIncrement - Amount by which this vector's capacity gets
increased when it overflows.
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
ContentProtectedVector
public ContentProtectedVector(int initialCapacity,
int capacityIncrement,
boolean protect)
Creates a new ContentProtectedVector instance with specified capacity
and capacity incrememt.
Parameters:
initialCapacity - Initial capacity for this vector.
capacityIncrement - Amount by which this vector's capacity gets
increased when it overflows.
protect - If true, automatically encrypt content; if false, content
only encrypted when the reCrypt() call deems it necessary.
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
checkCrypt
public boolean checkCrypt()
Determines if this vector's contents are protected properly.
This method uses PersistentContent.checkEncoding(Object) to
verify the encoding of each element in this vector. If this vector is
not yet protected, this method simply returns false without bothering to
check any contained element.
Returns:
False if this vector is not currently protected, or if any
element fails an encoding check; otherwise, true.
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
anArray - Array to contain this vector's components; the array must
be large enough to hold all this vector's components.
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
index - First element in the vector to compare with provided object.
Returns:
Index of first matching element found, or -1 if no matching
element found.
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
insertElementAt
public void insertElementAt(Object obj,
int index)
Inserts provided element at provided index.
This method inserts your provided object at your provided index. Any
objects currently at and after your provided index are shifted up one
slot to accommodate the insertion.
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
isProtected
public boolean isProtected()
Determines if this vector's contents are currently protected.
Returns:
True if this vector's contents are currently encrypted;
otherwise, false.
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
index - First element in the vector to compare with provided object.
Returns:
Index of the first matching element found, or -1 if no matching
element found.
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
persistentContentModeChanged
public void persistentContentModeChanged(int generation)
Invoked when the persisten content mode changes.
This method simply invokes reCrypt() on this vector.
Parameters:
generation - Ignored in this implementation.
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
persistentContentStateChanged
public void persistentContentStateChanged(int state)
Does nothing in this implementation.
Parameters:
state - Ignored in this implementation.
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
reCrypt
public void reCrypt()
Enables protection and encodes this vector's elements according to the
user's content protection settings.
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
Copyright 1999-2007 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved. Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. Copyright 2002-2003 Nokia Corporation All Rights Reserved. Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.