# SFSEncryptionType.fromNamespace constructor

SFSEncryptionType.fromNamespace(

1. String xmlns

)

## Implementation

    factory SFSEncryptionType.fromNamespace(String xmlns) {
      switch (xmlns) {
        case sfsEncryptionAes128GcmNoPaddingXmlns:
          return SFSEncryptionType.aes128GcmNoPadding;
        case sfsEncryptionAes256GcmNoPaddingXmlns:
          return SFSEncryptionType.aes256GcmNoPadding;
        case sfsEncryptionAes256CbcPkcs7Xmlns:
          return SFSEncryptionType.aes256CbcPkcs7;
      }

      throw Exception();
    }