Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class Microsoft.​IdentityModel.​Tokens.​KeyWrapProvider
Assembly: Microsoft.IdentityModel.Tokens
Inheritance: object → KeyWrapProvider
Implemented Interfaces
Provides Wrap and Unwrap key services.
Properties
public
string
Algorithm
Gets the KeyWrap algorithm that is being used.
public
string
Context
Gets or sets a user context for a <see cref="T:Microsoft.IdentityModel.Tokens.KeyWrapProvider" /> .
Remarks This is null by default. This can be used by runtimes or for extensibility scenarios.
public
SecurityKey
Key
Gets the <see cref="T:Microsoft.IdentityModel.Tokens.SecurityKey" /> that is being used.
Methods
public
void
Dispose​()
Calls <see cref="M:Microsoft.IdentityModel.Tokens.KeyWrapProvider.Dispose(System.Boolean)" /> and <see cref="M:System.GC.SuppressFinalize(System.Object)" /> .
protected
void
Dispose​(bool disposing)
Can be overridden in descendants to dispose of internal components.
disposing
true if called from Dispose(), false if invoked inside a finalizer.
public
byte[]
UnwrapKey​(byte[] keyBytes)
Unwraps a key.
Returns The unwrapped key.
keyBytes
The key to unwrap.
public
byte[]
WrapKey​(byte[] keyBytes)
Wraps a key.
Returns The wrapped key.
keyBytes
The key to be wrapped.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object