unwrap
recursively on the wrapped object or a proxy for that result. If the receiver is not a wrapper and does not implement the interface, then an SQLException
is thrown.
@param < T> the type of the class modeled by this Class object
@param iface A Class defining an interface that the result must implement.
@return an object that implements the interface. May be a proxy for the actual implementing object.
@throws java.sql.SQLException If no object found that implements the interface
@since 1.6
{@code incoming} is the contents of the SASL buffer as defined in RFC 2222without the leading four octet field that represents the length. {@code offset} and {@code len} specify the portion of {@code incoming}to use. @param incoming A non-null byte array containing the encoded bytesfrom the server. @param offset The starting position at {@code incoming} of the bytes to use. @param len The number of bytes from {@code incoming} to use. @return A non-null byte array containing the decoded bytes. @exception SaslException if {@code incoming} cannot be successfullyunwrapped. @exception IllegalStateException if the authentication exchange hasnot completed, or if the negotiated quality of protection has neither integrity nor privacy.
{@code incoming} is the contents of the SASL buffer as defined in RFC 2222without the leading four octet field that represents the length. {@code offset} and {@code len} specify the portion of {@code incoming}to use. @param incoming A non-null byte array containing the encoded bytesfrom the client. @param offset The starting position at {@code incoming} of the bytes to use. @param len The number of bytes from {@code incoming} to use. @return A non-null byte array containing the decoded bytes. @exception SaslException if {@code incoming} cannot be successfullyunwrapped. @exception IllegalStateException if the authentication exchange hasnot completed, or if the negotiated quality of protection has neither integrity nor privacy
ValidationException
is thrown.
@param type the class of the object to be returned.
@return an instance of the specified class
@throws ValidationException if the provider does not support the call.
ValidationException,
is thrown.
@param type the class of the object to be returned.
@return an instance of the specified class.
@throws ValidationException if the provider does notsupport the call.
true
unwrapping is forced
@param autoSave if true
modifications are saved automatically
@throws RepositoryException if an error occurs
@throws IOException if an I/O error occurs
wrap
method on the other side of the context. The method will return the message supplied by the peer application to its wrap call, while at the same time verifying the embedded MIC for that message.The MessageProp object is instantiated by the application and is used by the underlying mechanism to return information to the caller such as the QOP, whether confidentiality was applied to the message, and other supplementary message state information.
Since some application-level protocols may wish to use tokens emitted by wrap to provide "secure framing", implementations should support the wrapping and unwrapping of zero-length messages.
@param inBuf a byte array containing the wrap token received frompeer. @param offset the offset where the token begins. @param len the length of the token @param msgProp upon return from the method, this object will containthe applied QOP, the privacy state of the message, and supplementary information stating if the token was a duplicate, old, out of sequence or arriving after a gap. @return a byte[] containing the message unwrapped from the inputtoken. @throws GSSException containing the following major error codes: {@link GSSException#DEFECTIVE_TOKEN GSSException.DEFECTIVE_TOKEN}, {@link GSSException#BAD_MIC GSSException.BAD_MIC}, {@link GSSException#CONTEXT_EXPIRED GSSException.CONTEXT_EXPIRED}, {@link GSSException#FAILURE GSSException.FAILURE}
RestContext@param type the type of the context to be returned. The backend context must be assignable from this type. @return an instance of the specified type @throws IllegalArgumentException if the backend context is not assignable from the specified class. @see #getBackendType()backendApi = computeContext.unwrap(NovaApiMetadata.CONTEXT_TOKEN);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|