Provides a vector that employs content protection on its contained elements.
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
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 applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
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 applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
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 applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
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 applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
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 applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
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 applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
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 applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
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 applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
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 applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
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 applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
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 applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
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 applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
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 applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
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 applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Copyright 1999-2008 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.