Class: JOSE::EncryptedBinary

Inherits:
String
  • Object
show all
Defined in:
lib/jose/jwe.rb

Instance Method Summary collapse

Instance Method Details

#expandJOSE::EncryptedMap

Expands a compacted encrypted binary or list of encrypted binaries into a map.

Returns:

See Also:



7
8
9
# File 'lib/jose/jwe.rb', line 7

def expand
  return JOSE::JWE.expand(self)
end

#peek_ciphertextString

Returns the decoded ciphertext portion of a encrypted binary or map without decrypting the ciphertext.

Returns:

  • (String)

See Also:



14
15
16
# File 'lib/jose/jwe.rb', line 14

def peek_ciphertext
  return JOSE::JWE.peek_ciphertext(self)
end

#peek_encrypted_keyString

Returns the decoded encrypted key portion of a encrypted binary or map without decrypting the ciphertext.

Returns:

  • (String)

See Also:



21
22
23
# File 'lib/jose/jwe.rb', line 21

def peek_encrypted_key
  return JOSE::JWE.peek_encrypted_key(self)
end

#peek_ivString

Returns the decoded initialization vector portion of a encrypted binary or map without decrypting the ciphertext.

Returns:

  • (String)

See Also:



28
29
30
# File 'lib/jose/jwe.rb', line 28

def peek_iv
  return JOSE::JWE.peek_iv(self)
end

#peek_protectedJOSE::Map

Returns the decoded protected portion of a encrypted binary or map without decrypting the ciphertext.

Returns:

See Also:



35
36
37
# File 'lib/jose/jwe.rb', line 35

def peek_protected
  return JOSE::JWE.peek_protected(self)
end

#peek_tagString

Returns the decoded tag portion of a encrypted binary or map without decrypting the ciphertext.

Returns:

  • (String)

See Also:



42
43
44
# File 'lib/jose/jwe.rb', line 42

def peek_tag
  return JOSE::JWE.peek_tag(self)
end